2
#---------------------------------------------
5
# Utility script to copy files specified by URLs, including
6
# downloading and uploading from/to remote sites.
8
# Refer to the usage() function below for usage.
10
# Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org>
11
# Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org>
12
# Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at>
13
# Copyright 2006, Jeremy White <jwhite@codeweavers.com>
17
#---------------------------------------------
35
kfmclient copy "$1" "$2"
40
exit_failure_operation_failed
46
if gvfs-copy --help 2>/dev/null 1>&2; then
49
gnomevfs-copy "$1" "$2"
55
exit_failure_operation_failed
59
[ x"$1" != x"" ] || exit_failure_syntax
63
while [ $# -gt 0 ] ; do
69
exit_failure_syntax "unexpected option '$parm'"
73
if [ -n "$dest" ] ; then
74
exit_failure_syntax "unexpected argument '$parm'"
76
if [ -n "$source" ] ; then
85
if [ -z "${source}" ] ; then
86
exit_failure_syntax "source argument missing"
88
if [ -z "${dest}" ] ; then
89
exit_failure_syntax "destination argument missing"
96
copy_kde "$source" "$dest"
99
gnome*|cinnamon|lxde|mate|xfce)
100
copy_gnome "$source" "$dest"
104
exit_failure_operation_impossible "no method available for copying '$source' to '$dest'"