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/test
27 rm -rf $PROJECT-$VER/src/*.cl*
28 rm -rf $PROJECT-$VER/src/ltj-kinsoku.lua
29 rm -rf $PROJECT-$VER-orig
30 cp -r $PROJECT-$VER $PROJECT-$VER-orig
32 perl -pi.bak -e "s/\\\$VER\\\$/$VER/g" README
35 diff -urN $PROJECT-$VER-orig $PROJECT-$VER
36 tar zcf $DIR/$PROJECT-$VER.tar.gz $PROJECT-$VER
38 echo You should execute
40 echo " git push && git tag $VER && git push origin $VER"
42 echo Informations for submitting CTAN:
43 echo " CONTRIBUTION: LuaTeX-ja"
44 echo " SUMMARY: Typeset Japanese documents with Lua(La)TeX."
45 echo " DIRECTORY: macros/luatex/generic/luatexja"
46 echo " LICENSE: free/other-free"
47 echo " FILE: $DIR/$PROJECT-$VER.tar.gz"