Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Commit

Permalink
makedist: Fix to handle rc releases
Browse files Browse the repository at this point in the history
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
  • Loading branch information
Jes Sorensen committed Mar 22, 2018
1 parent e397cef commit 94d7a6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions makedist
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else { cat inventory ; echo ANNOUNCE-$version ; } | sort -o inventory
fi

echo version = $version
base=mdadm-$version.tar.gz
base=mdadm-$rpmv.tar.gz
if [ " $arg" != " diff" ]
then
if [ -f $target/$base ]
Expand All @@ -53,7 +53,7 @@ then
exit 1
fi
trap "rm $target/$base; exit" 1 2 3
git archive --prefix=mdadm-$version/ HEAD | gzip --best > $target/$base
git archive --prefix=mdadm-$rpmv/ HEAD | gzip --best > $target/$base
chmod a+r $target/$base
ls -l $target/$base
if tar tzf $target/$base | sed 's,[^/]*/,,' | sort | diff -u inventory -
Expand All @@ -63,7 +63,7 @@ then
exit 1
fi
rpmbuild -ta $target/$base || exit 1
find /home/neilb/src/RPM -name "*mdadm-$version-*" \
find ~/rpmbuild/RPMS -name "*mdadm-$version-*" \
-exec cp {} $target/RPM \;
cp ANNOUNCE-$version $target/ANNOUNCE
cp ChangeLog $target/ChangeLog
Expand Down

0 comments on commit 94d7a6c

Please sign in to comment.