Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
  • Loading branch information
stephensmalley committed Oct 14, 2016
1 parent b4cca24 commit b5f2652
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/release
Expand Up @@ -3,11 +3,11 @@
PWD=`pwd`
WIKIDIR=../selinux.wiki

if [ \! -d $(WIKIDIR) ]; then
git clone git@github.com:SELinuxProject/selinux.wiki.git $(WIKIDIR)
if [ \! -d $WIKIDIR ]; then
git clone git@github.com:SELinuxProject/selinux.wiki.git $WIKIDIR
fi

DEST=$(WIKIDIR)/files/releases/$(date '+%Y%m%d')
DEST=$WIKIDIR/files/releases/$(date '+%Y%m%d')
DIRS="libsepol libselinux libsemanage policycoreutils checkpolicy secilc sepolgen"

git tag -a $(date '+%Y%m%d') -m "Release $(date '+%Y%m%d')"
Expand All @@ -26,9 +26,9 @@ done

cd $DEST

git add files/releases/$(date '+%Y%m%d')
git add .

echo "Add the following to the $(WIKIDIR)/Releases.md wiki page:"
echo "Add the following to the $WIKIDIR/Releases.md wiki page:"

echo ""

Expand All @@ -42,10 +42,10 @@ for i in *.tar.gz; do
done

echo "And then run:"
echo "cd $(WIKIDIR)"
echo "cd $WIKIDIR"
echo "git commit -m \"Release $(date '+%Y%m%d')\" -a -s"

echo "Push the release and its tags to git via:"
echo " cd $(PWD)"
echo " cd $PWD"
echo " git push"
echo " git push --tags"

0 comments on commit b5f2652

Please sign in to comment.