diff options
author | Neil Brown <neilb@suse.de> | 2001-08-23 02:33:20 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2001-08-23 02:33:20 +0000 |
commit | 52826846282e9e224e05dde6d2e4cb38d1fefec7 (patch) | |
tree | e776bd76e2d152c28854b83d9776ab8f7ec41317 /makedist | |
parent | 0db17fcbde740232955a7d5fd57896d8894c9eb5 (diff) | |
download | mdadm-52826846282e9e224e05dde6d2e4cb38d1fefec7.tar.gz |
mdctl-0.5mdctl-0.5
Diffstat (limited to 'makedist')
-rwxr-xr-x | makedist | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -7,14 +7,15 @@ else echo $target is not a directory exit 2 fi set `grep '^char Version' ReadMe.c ` -echo version = $7 -base=mdctl-$7.tgz +version=`echo $7 | sed 's/v//'` +echo version = $version +base=mdctl-$version.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 +( cd .. ; ln -s mdctl mdctl-$version ; tar czhvf - --exclude='*,v' --exclude='*.o' --exclude=RCS mdctl-$version ; rm mdctl-$version ) > $target/$base chmod a+r $target/$base ls -l $target/$base |