summaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2001-08-23 02:33:20 +0000
committerNeil Brown <neilb@suse.de>2001-08-23 02:33:20 +0000
commit52826846282e9e224e05dde6d2e4cb38d1fefec7 (patch)
treee776bd76e2d152c28854b83d9776ab8f7ec41317 /makedist
parent0db17fcbde740232955a7d5fd57896d8894c9eb5 (diff)
downloadmdadm-52826846282e9e224e05dde6d2e4cb38d1fefec7.tar.gz
mdctl-0.5mdctl-0.5
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist7
1 files changed, 4 insertions, 3 deletions
diff --git a/makedist b/makedist
index 789a80a..773e7f0 100755
--- a/makedist
+++ b/makedist
@@ -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