blob: 789a80a7fc3ef6cc1d581fad4badc35fd262566f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
target=${1-~/public_html/source/mdctl}
if [ -d $target ]
then :
else echo $target is not a directory
exit 2
fi
set `grep '^char Version' ReadMe.c `
echo version = $7
base=mdctl-$7.tgz
if [ -f $target/$base ]
then
echo $target/$base exists.
exit 1
fi
trap "rm $target/$base; exit" 1 2 3
( cd .. ; tar czvf - mdctl ) > $target/$base
chmod a+r $target/$base
ls -l $target/$base
|