-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add make-update script and fix release script.
make-update script is for generating an update for an existing release, e.g. for a bug fix update. release script is for generating a new release. Per-package tagging may fail on the release script if the version has not changed; this is harmless. Signed-off-by: Stephen Smalley <[email protected]>
- Loading branch information
1 parent
ac74dde
commit f64918f
Showing
2 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
if [ $# != 2 ]; then | ||
echo "Usage: $0 last-release-date package-to-update" | ||
echo " e.g. $0 20131030 sepolgen" | ||
exit 1 | ||
fi | ||
|
||
TAG=$1 | ||
PKG=$2 | ||
|
||
DEST=../update-$TAG | ||
mkdir -p $DEST | ||
|
||
if [ \! -d $PKG ]; then | ||
echo "$PKG does not exist." | ||
exit 1 | ||
fi | ||
|
||
cd $PKG | ||
VERS=`cat VERSION` | ||
ARCHIVE=$PKG-$VERS.tar.gz | ||
git tag $PKG-$VERS | ||
git archive --format=tar --prefix=$PKG-$VERS/ $PKG-$VERS | gzip > ../$DEST/$ARCHIVE | ||
cd .. | ||
|
||
cd $DEST | ||
|
||
echo "Copy $ARCHIVE from $DEST to the server and update its download link and checksum on the Releases wiki page:" | ||
|
||
echo "" | ||
|
||
echo "[http://userspace.selinuxproject.org/releases/$TAG/$ARCHIVE $ARCHIVE]" | ||
echo "" | ||
echo "`sha256sum $ARCHIVE`" | ||
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters