Diffstat (limited to 'noncore/tools/opie-sh/scripts/rsyncme.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/tools/opie-sh/scripts/rsyncme.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/tools/opie-sh/scripts/rsyncme.sh b/noncore/tools/opie-sh/scripts/rsyncme.sh index c09aea8..3d56c12 100755 --- a/noncore/tools/opie-sh/scripts/rsyncme.sh +++ b/noncore/tools/opie-sh/scripts/rsyncme.sh | |||
@@ -4,34 +4,34 @@ | |||
4 | # | 4 | # |
5 | # Copyright (C) 2002 gonz@directbox.com | 5 | # Copyright (C) 2002 gonz@directbox.com |
6 | # | 6 | # |
7 | # This program is free software; you can redistribute it and/or modify | 7 | # This program is free software; you can redistribute it and/or modify |
8 | # it under the terms of the GNU General Public License as published by | 8 | # it under the terms of the GNU General Public License as published by |
9 | # the Free Software Foundation; either version 2, or (at your option) | 9 | # the Free Software Foundation; either version 2, or (at your option) |
10 | # any later version. | 10 | # any later version. |
11 | # | 11 | # |
12 | # This program is distributed in the hope that it will be useful, | 12 | # This program is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # GNU General Public License for more details. | 15 | # GNU General Public License for more details. |
16 | # | 16 | # |
17 | # 20020517-1 - added icon, changed name in launcher | 17 | # 20020517-1 - added icon, changed name in launcher |
18 | # | 18 | # |
19 | 19 | ||
20 | CFG=/opt/QtPalmtop/share/config/rsyncme.cfg | 20 | CFG=$OPIEDIR/share/config/rsyncme.cfg |
21 | OPIE_SH=opie-sh | 21 | OPIE_SH=$OPIEDIR/bin/opie-sh |
22 | 22 | ||
23 | update_cfg() { | 23 | update_cfg() { |
24 | # check if dir is in CFG and if not add it | 24 | # check if dir is in CFG and if not add it |
25 | if [ "`grep -c $DIR $CFG`" = "0" ] | 25 | if [ "`grep -c $DIR $CFG`" = "0" ] |
26 | thenecho $DIR >>$CFG | 26 | thenecho $DIR >>$CFG |
27 | fi | 27 | fi |
28 | } | 28 | } |
29 | 29 | ||
30 | ask_dirs() { | 30 | ask_dirs() { |
31 | # get source and destination dir | 31 | # get source and destination dir |
32 | DIR=`$OPIE_SH -g -i -t "Choose Source Directory" -l -L DIR: -E -F $CFG ` | 32 | DIR=`$OPIE_SH -g -i -t "Choose Source Directory" -l -L DIR: -E -F $CFG ` |
33 | update_cfg | 33 | update_cfg |
34 | SRCDIR=$DIR | 34 | SRCDIR=$DIR |
35 | 35 | ||
36 | DIR=`$OPIE_SH -g -i -t "Choose Destination Directory" -l -L DIR: -E -F $CFG ` | 36 | DIR=`$OPIE_SH -g -i -t "Choose Destination Directory" -l -L DIR: -E -F $CFG ` |
37 | update_cfg | 37 | update_cfg |
@@ -55,33 +55,33 @@ rsync_output() { | |||
55 | echo "</pre>done." | 55 | echo "</pre>done." |
56 | ) | $OPIE_SH -t "Result:" -f | 56 | ) | $OPIE_SH -t "Result:" -f |
57 | } | 57 | } |
58 | 58 | ||
59 | cleanup() { | 59 | cleanup() { |
60 | kill $SCREENCLEAN | 60 | kill $SCREENCLEAN |
61 | rm -f /tmp/qcop-msg-rsyncme.sh | 61 | rm -f /tmp/qcop-msg-rsyncme.sh |
62 | } | 62 | } |
63 | 63 | ||
64 | show_dirs() { | 64 | show_dirs() { |
65 | ( echo "<h3>Directorys chosen for sync:</h3>" | 65 | ( echo "<h3>Directorys chosen for sync:</h3>" |
66 | echo "<ul><li>$SRCDIR<li>$DESTDIR</ul>" ) \ | 66 | echo "<ul><li>$SRCDIR<li>$DESTDIR</ul>" ) \ |
67 | | $OPIE_SH -t "Got directories" -f | 67 | | $OPIE_SH -t "Got directories" -f |
68 | } | 68 | } |
69 | 69 | ||
70 | about() { | 70 | about() { |
71 | ( echo "<img src=/opt/QtPalmtop/pics/opie-sh-scripts/rsyncme.png>" | 71 | ( echo "<img src=$OPIEDIR/pics/opie-sh-scripts/rsyncme.png>" |
72 | echo "<h3>About</h3>" | 72 | echo "<h3>About</h3>" |
73 | echo "This little App should make it possible for you to " | 73 | echo "This little App should make it possible for you to " |
74 | echo "easily choose the wanted options for an rsync process." | 74 | echo "easily choose the wanted options for an rsync process." |
75 | echo "<p>" | 75 | echo "<p>" |
76 | ) | $OPIE_SH -t rsync-helper -f & | 76 | ) | $OPIE_SH -t rsync-helper -f & |
77 | SCREENCLEAN=$! | 77 | SCREENCLEAN=$! |
78 | sleep 1 | 78 | sleep 1 |
79 | } | 79 | } |
80 | 80 | ||
81 | 81 | ||
82 | 82 | ||
83 | 83 | ||
84 | ##################################################################### | 84 | ##################################################################### |
85 | # | 85 | # |
86 | # main | 86 | # main |
87 | 87 | ||