summaryrefslogtreecommitdiff
path: root/noncore/tools/opie-sh/scripts/rsyncme.sh
Unidiff
Diffstat (limited to 'noncore/tools/opie-sh/scripts/rsyncme.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/tools/opie-sh/scripts/rsyncme.sh6
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
@@ -8,26 +8,26 @@
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
20CFG=/opt/QtPalmtop/share/config/rsyncme.cfg 20CFG=$OPIEDIR/share/config/rsyncme.cfg
21OPIE_SH=opie-sh 21OPIE_SH=$OPIEDIR/bin/opie-sh
22 22
23update_cfg() { 23update_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
30ask_dirs() { 30ask_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
@@ -59,25 +59,25 @@ rsync_output() {
59cleanup() { 59cleanup() {
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
64show_dirs() { 64show_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
70about() { 70about() {
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