3 VER=${VER:-`date +%Y%m%d.0`}
7 echo "Making Release $VER. Ctrl-C to cancel."
9 if test -d "$TEMP/$PROJECT-$VER"; then
10 echo "Warning: the directory '$TEMP/$PROJECT-$VER' is found:"
12 ls $TEMP/$PROJECT-$VER
14 echo -n "I'm going to remove this directory. Continue? yes/No"
18 y*|Y*) rm -rf $TEMP/$PROJECT-$VER;;
19 *) echo "Aborted."; exit 1;;
23 git commit -m "Releases $VER" --allow-empty
24 git archive --format=tar --prefix=$PROJECT-$VER/ HEAD | (cd $TEMP && tar xf -)
26 rm -rf $PROJECT-$VER-orig
27 cp -r $PROJECT-$VER $PROJECT-$VER-orig
29 perl -pi.bak -e "s/\\\$VER\\\$/$VER/g" README
32 diff -urN $PROJECT-$VER-orig $PROJECT-$VER
33 tar zcf $DIR/$PROJECT-$VER.tar.gz $PROJECT-$VER
35 echo You should execute
37 echo " git push && git tag $VER && git push origin $VER"
39 echo Informations for submitting CTAN:
40 echo " CONTRIBUTION: LuaTeX-ja"
41 echo " SUMMARY: Typeset Japanese documents with Lua(La)TeX."
42 echo " DIRECTORY: macros/luatex/generic/luatexja"
43 echo " LICENSE: free/other-free"
44 echo " FILE: $DIR/$PROJECT-$VER.tar.gz"