summaryrefslogtreecommitdiffstats
path: root/makedist
diff options
context:
space:
mode:
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist12
1 files changed, 11 insertions, 1 deletions
diff --git a/makedist b/makedist
index 0c307f9..fb14ad4 100755
--- a/makedist
+++ b/makedist
@@ -21,9 +21,13 @@ grep "^Version: *$version$" mdadm.spec > /dev/null 2>&1 ||
if [ -f ANNOUNCE-$version ]
then :
else
- echo ANNONCE-$version does not exist
+ echo ANNOUNCE-$version does not exist
exit 1
fi
+if grep "^ANNOUNCE-$version\$" inventory
+then :
+else { cat inventory ; echo ANNOUNCE-$version ; } | sort -o inventory
+fi
echo version = $version
base=mdadm-$version.tgz
@@ -38,6 +42,12 @@ then
( cd .. ; ln -s mdadm mdadm-$version ; tar chvf - --exclude="TAGS" --exclude='*~' --exclude=.patches --exclude='*,v' --exclude='*.o' --exclude mdadm --exclude=mdadm'.[^ch0-9]' --exclude=RCS mdadm-$version ; rm mdadm-$version ) | gzip --best > $target/$base
chmod a+r $target/$base
ls -l $target/$base
+ if tar tzf $target/$base | sed 's,[^/]*/,,' | sort | diff -u inventory -
+ then : correct files found
+ else echo "Extra files, or invertory is out-of-date"
+ rm $target/$base
+ exit 1
+ fi
rpm -ta $target/$base
find /home/neilb/src/RPM -name "*mdadm-$version-*" \