-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script for easier release creation
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Using `tools/release.sh` will generate release zip archives here, but they | ||
should not be included in the repo! |
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 |
---|---|---|
@@ -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 :)" |