forked from SELinuxProject/selinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4257778
commit b8390a6
Showing
1 changed file
with
20 additions
and
2 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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
#!/bin/bash | ||
|
||
DEST=../selinux-$(date '+%Y%m%d') | ||
PWD=`pwd` | ||
WIKIDIR=../selinux.wiki | ||
|
||
if [ \! -d $(WIKIDIR) ]; then | ||
git clone [email protected]:SELinuxProject/selinux.wiki.git $(WIKIDIR) | ||
fi | ||
|
||
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')" | ||
|
@@ -19,7 +26,9 @@ done | |
|
||
cd $DEST | ||
|
||
echo "Copy *.tar.gz from $DEST to the server and add the following to the Releases wiki page:" | ||
git add files/releases/$(date '+%Y%m%d') | ||
|
||
echo "Add the following to the $(WIKIDIR)/Releases.md wiki page:" | ||
|
||
echo "" | ||
|
||
|
@@ -31,3 +40,12 @@ for i in *.tar.gz; do | |
sha256sum $i | cut -d " " -f 1 | ||
echo "" | ||
done | ||
|
||
echo "And then run:" | ||
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 " git push" | ||
echo " git push --tags" |