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