mdadm/makedist

21 lines
398 B
Plaintext
Raw Normal View History

2001-06-08 04:36:23 +02:00
#!/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 `
2001-06-14 07:33:53 +02:00
echo version = $7
base=mdctl-$7.tgz
2001-06-08 04:36:23 +02:00
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
2001-06-14 07:33:53 +02:00
ls -l $target/$base