summaryrefslogtreecommitdiffstats
path: root/makedist
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-09-03 06:16:22 +0200
committerNeilBrown <neilb@suse.de>2013-09-03 06:47:47 +0200
commit6f02172d2e9cbef03da07a16c9fffe46062d09e6 (patch)
tree6adf28e1bb9c25830133d2d251654dedb259d550 /makedist
parentconfig: support MDADM_CONF_AUTO= env var. (diff)
downloadmdadm-6f02172d2e9cbef03da07a16c9fffe46062d09e6.tar.xz
mdadm-6f02172d2e9cbef03da07a16c9fffe46062d09e6.zip
Release mdadm-3.3mdadm-3.3
(and various cosmetic fixes) Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist12
1 files changed, 6 insertions, 6 deletions
diff --git a/makedist b/makedist
index 2f639d8d..e4f20acf 100755
--- a/makedist
+++ b/makedist
@@ -15,7 +15,7 @@ else echo $target is not a directory
exit 2
fi
set `grep '^#define VERSION' ReadMe.c `
-version=`echo $7 | sed -e 's/"//g'`
+version=`echo $3 | sed -e 's/"//g'`
grep "^.TH MDADM 8 .. v$version" mdadm.8.in > /dev/null 2>&1 ||
{
echo mdadm.8.in does not mention version $version.
@@ -47,8 +47,8 @@ echo version = $version
base=mdadm-$version.tar.gz
if [ " $arg" != " diff" ]
then
- if [ -f $target/$base ]
- then
+ if [ -f $target/$base ]
+ then
echo $target/$base exists.
exit 1
fi
@@ -83,14 +83,14 @@ then
fi
fi
else
- if [ ! -f $target/$base ]
- then
+ if [ ! -f $target/$base ]
+ then
echo $target/$base does not exist.
exit 1
fi
( cd .. ; ln -s mdadm.v2 mdadm-$version ; tar chf - --exclude=.git --exclude="TAGS" --exclude='*,v' --exclude='*~' --exclude='*.o' --exclude mdadm --exclude=mdadm'.[^ch0-9]' --exclude=RCS mdadm-$version ; rm mdadm-$version ) | gzip --best > /var/tmp/mdadm-new.tgz
mkdir /var/tmp/mdadm-old ; zcat $target/$base | ( cd /var/tmp/mdadm-old ; tar xf - )
mkdir /var/tmp/mdadm-new ; zcat /var/tmp/mdadm-new.tgz | ( cd /var/tmp/mdadm-new ; tar xf - )
- diff -ru /var/tmp/mdadm-old /var/tmp/mdadm-new
+ diff -ru /var/tmp/mdadm-old /var/tmp/mdadm-new
rm -rf /var/tmp/mdadm-old /var/tmp/mdadm-new /var/tmp/mdadm-new.tgz
fi