Skip to content

Commit

Permalink
Fix release script for packages that need prefixes.
Browse files Browse the repository at this point in the history
We need prefixes for dbus, gui, python at least, and
we'll include sandbox too.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
  • Loading branch information
stephensmalley committed Nov 16, 2016
1 parent 1c8505d commit f0cc954
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/release
Expand Up @@ -8,7 +8,8 @@ if [ \! -d $WIKIDIR ]; then
fi

DEST=$WIKIDIR/files/releases/$(date '+%Y%m%d')
DIRS="libsepol libselinux libsemanage checkpolicy secilc policycoreutils dbus gui mcstrans python restorecond sandbox semodule-utils"
DIRS="libsepol libselinux libsemanage checkpolicy secilc policycoreutils mcstrans restorecond semodule-utils"
DIRS_NEED_PREFIX="dbus gui python sandbox"

git tag -a $(date '+%Y%m%d') -m "Release $(date '+%Y%m%d')"

Expand All @@ -24,6 +25,15 @@ for i in $DIRS; do
cd ..
done

for i in $DIRS_NEED_PREFIX; do
cd $i
VERS=`cat VERSION`
ARCHIVE=selinux-$i-$VERS.tar.gz
git tag $i-$VERS > /dev/null 2>&1
git archive --format=tar --prefix=selinux-$i-$VERS/ selinux-$i-$VERS | gzip > ../$DEST/$ARCHIVE
cd ..
done

cd $DEST

git add .
Expand Down

0 comments on commit f0cc954

Please sign in to comment.