mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-22 05:59:58 +00:00
Fix release script for packages that need prefixes.
We need prefixes for dbus, gui, python at least, and we'll include sandbox too. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
parent
1c8505dac2
commit
f0cc95435f
@ -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')"
|
||||
|
||||
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user