Skip to content

Commit

Permalink
Added script for easier release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
kontur committed Nov 8, 2021
1 parent b7ae04e commit cdafcc7
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ sources/masters
sources/instances
debug.fea
.DS_Store
# Keep a folder for, but do not include generated, release archives
release/*.zip
2 changes: 2 additions & 0 deletions release/keep
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Using `tools/release.sh` will generate release zip archives here, but they
should not be included in the repo!
48 changes: 48 additions & 0 deletions tools/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

echo "Release archive helper script, for maintainers of the repo :)"

if [$1 == ""]
then
echo "Pass in a new version tag to create, increment at least from below and match what is in the font files!"
git tag
exit
fi


echo "Tagging version $1"
git tag -f $1


RASA="release/Rasa-fonts-$1"
echo "Packaging $RASA.zip"
mkdir $RASA
cp documentation/FONTLOG.md $RASA/FONTLOG.txt
cp OFL.txt $RASA/OFL.txt
cp README.MD $RASA/README.txt
mkdir $RASA/otf
mkdir $RASA/ttf
mkdir $RASA/variable
cp fonts/Rasa/*.otf $RASA/otf/
cp fonts/Rasa/*.ttf $RASA/ttf/
cp fonts/RasaVariable/* $RASA/variable/
zip $RASA.zip $RASA
rm -r $RASA


YRSA="release/Yrsa-fonts-$1"
echo "Packaging $YRSA.zip"
mkdir $YRSA
cp documentation/FONTLOG.md $YRSA/FONTLOG.txt
cp OFL.txt $YRSA/OFL.txt
cp README.MD $YRSA/README.txt
mkdir $YRSA/otf
mkdir $YRSA/ttf
mkdir $YRSA/variable
cp fonts/Yrsa/*.otf $YRSA/otf/
cp fonts/Yrsa/*.ttf $YRSA/ttf/
cp fonts/YrsaVariable/* $YRSA/variable/
zip $YRSA.zip $YRSA
rm -r $YRSA


echo "Push the tag (and commit) to github with '$ git push origin master --tags' and attach the generated zip files in /release to the new release :)"

0 comments on commit cdafcc7

Please sign in to comment.