projects
/
fusionforge
/
fusionforge.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Move the arguments and redirect to dedicated function
[fusionforge/fusionforge.git]
/
src
/
deb-specific
/
manage-uufiles.sh
1
#! /bin/sh
2
3
case "$1" in
4
clean)
5
UUFILES=$(find -name *.uu)
6
for i in $UUFILES ; do
7
d=$(dirname $i)
8
j=$(basename $i .uu)
9
if [ -e $d/$j ] ; then
10
rm $d/$j
11
fi
12
done
13
;;
14
decode)
15
UUFILES=$(find -name *.uu)
16
for i in $UUFILES ; do
17
d=$(dirname $i)
18
j=$(basename $i .uu)
19
uudecode -o $d/$j $i
20
done
21
;;
22
*)
23
echo "Usage: $0 {decode|clean}"
24
exit 1
25
;;
26
esac