ソースコードの管理場所
リビジョン | ed2c2bfdf661faf9aacf81b0f090e2d182bc8a7a (tree) |
---|---|
日時 | 2012-05-05 21:18:27 |
作者 | Hironori Kitagawa <h_kitagawa2001@yaho...> |
コミッター | Hironori Kitagawa |
Modify scripts for release.
@@ -2,5 +2,5 @@ | ||
2 | 2 | README export-subst |
3 | 3 | .gitattributes export-ignore |
4 | 4 | .gitignore export-ignore |
5 | -/tool/release.mak export-ignore | |
5 | +/tool/release.sh export-ignore | |
6 | 6 |
@@ -24,7 +24,7 @@ Installation | ||
24 | 24 | 0. Please make sure that your TeX distribution is up-to-date. |
25 | 25 | LuaTeX-ja (luatexja-fontspec.sty) requires xunicode.sty v0.981. |
26 | 26 | |
27 | -1. If you use TeX Live 2011 or later, you can install LuaTeX-ja via tlmgr. | |
27 | +1. If you are using TeX Live 2011 or later, you can install LuaTeX-ja via tlmgr. | |
28 | 28 | |
29 | 29 | 2. If you must/want to install manually: |
30 | 30 |
@@ -1,15 +0,0 @@ | ||
1 | -#-*- mode: Makefile -*- | |
2 | - | |
3 | -PROJECT=luatexja | |
4 | -DIR=.. | |
5 | -VER=HEAD | |
6 | - | |
7 | -all: | |
8 | - perl -pi.bak -e 's/\$$VER\$$/$(VER)/g' README | |
9 | - rm -f README.bak | |
10 | - git add README | |
11 | - git commit -m 'Releases $(VER)' | |
12 | - git tag $(VER) | |
13 | - git archive --format=tar --prefix=$(PROJECT)-$(VER)/ $(VER) | gzip > $(DIR)/$(PROJECT)-$(VER).tar.gz | |
14 | - git push origin $(VER) || echo | |
15 | - git reset --hard HEAD~ |
@@ -0,0 +1,45 @@ | ||
1 | +PROJECT=luatexja | |
2 | +DIR=`pwd`/.. | |
3 | +VER=${VER:-`date +%Y%m%d.0`} | |
4 | + | |
5 | +TEMP=/tmp | |
6 | + | |
7 | +echo "Making Release $VER. Ctrl-C to cancel." | |
8 | +read REPLY | |
9 | +if test -d "$TEMP/$PROJECT-$VER"; then | |
10 | + echo "Warning: the directory '$TEMP/$PROJECT-$VER' is found:" | |
11 | + echo | |
12 | + ls $TEMP/$PROJECT-$VER | |
13 | + echo | |
14 | + echo -n "I'm going to remove this directory. Continue? yes/No" | |
15 | + echo | |
16 | + read REPLY <&2 | |
17 | + case $REPLY in | |
18 | + y*|Y*) rm -rf $TEMP/$PROJECT-$VER;; | |
19 | + *) echo "Aborted."; exit 1;; | |
20 | + esac | |
21 | +fi | |
22 | +echo | |
23 | +git commit -m "Releases $VER" --allow-empty | |
24 | +git archive --format=tar --prefix=$PROJECT-$VER/ HEAD | (cd $TEMP && tar xf -) | |
25 | +cd $TEMP | |
26 | +rm -rf $PROJECT-$VER-orig | |
27 | +cp -r $PROJECT-$VER $PROJECT-$VER-orig | |
28 | +cd $PROJECT-$VER | |
29 | +perl -pi.bak -e "s/\\\$VER\\\$/$VER/g" README | |
30 | +rm -f README.bak | |
31 | +cd .. | |
32 | +diff -urN $PROJECT-$VER-orig $PROJECT-$VER | |
33 | +tar zcf $DIR/$PROJECT-$VER.tar.gz $PROJECT-$VER | |
34 | +echo | |
35 | +echo You should execute | |
36 | +echo | |
37 | +echo " git push && git tag $VER && git push origin $VER" | |
38 | +echo | |
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" | |
45 | + |