diff options
Diffstat (limited to 'Master/texmf-dist/source/jfontmaps/tools/release.sh')
-rwxr-xr-x | Master/texmf-dist/source/jfontmaps/tools/release.sh | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/jfontmaps/tools/release.sh b/Master/texmf-dist/source/jfontmaps/tools/release.sh new file mode 100755 index 00000000000..13c4125c339 --- /dev/null +++ b/Master/texmf-dist/source/jfontmaps/tools/release.sh @@ -0,0 +1,52 @@ +# +# release.sh +# copied from luatexja project and adapted + +PROJECT=jfontmaps +DIR=`pwd`/.. +VER=${VER:-`date +%Y%m%d.0`} + +TEMP=/tmp + +echo "Making Release $VER. Ctrl-C to cancel." +read REPLY +if test -d "$TEMP/$PROJECT-$VER"; then + echo "Warning: the directory '$TEMP/$PROJECT-$VER' is found:" + echo + ls $TEMP/$PROJECT-$VER + echo + echo -n "I'm going to remove this directory. Continue? yes/No" + echo + read REPLY <&2 + case $REPLY in + y*|Y*) rm -rf $TEMP/$PROJECT-$VER;; + *) echo "Aborted."; exit 1;; + esac +fi +echo +git commit -m "Release $VER" --allow-empty +git archive --format=tar --prefix=$PROJECT-$VER/ HEAD | (cd $TEMP && tar xf -) +cd $TEMP +rm -rf $PROJECT-$VER-orig +cp -r $PROJECT-$VER $PROJECT-$VER-orig +cd $PROJECT-$VER +rm -f .gitignore +for i in README script/kanji-fontmap-creator.pl script/kanji-config-updmap.pl ; do + perl -pi.bak -e "s/\\\$VER\\\$/$VER/g" $i + rm -f ${i}.bak +done +cd .. +diff -urN $PROJECT-$VER-orig $PROJECT-$VER +tar zcf $DIR/$PROJECT-$VER.tar.gz $PROJECT-$VER +echo +echo You should execute +echo +echo " git push && git tag $VER && git push origin $VER" +echo +echo Informations for submitting CTAN: +echo " CONTRIBUTION: jfontmaps" +echo " SUMMARY: Font maps and configuration tools for Japanese fonts" +echo " DIRECTORY: language/japanese/jfontmaps" +echo " LICENSE: free/other-free" +echo " FILE: $DIR/$PROJECT-$VER.tar.gz" + |