summaryrefslogtreecommitdiffstats
path: root/makedist
blob: 5b6db54ddac564c6f8e4ded20a0eb97d15f22edd (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 = $6
base=mdctl-$6.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