• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ソースコードの管理場所


コミットメタ情報

リビジョンed2c2bfdf661faf9aacf81b0f090e2d182bc8a7a (tree)
日時2012-05-05 21:18:27
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

Modify scripts for release.

変更サマリ

差分

--- a/.gitattributes
+++ b/.gitattributes
@@ -2,5 +2,5 @@
22 README export-subst
33 .gitattributes export-ignore
44 .gitignore export-ignore
5-/tool/release.mak export-ignore
5+/tool/release.sh export-ignore
66
--- a/README
+++ b/README
@@ -24,7 +24,7 @@ Installation
2424 0. Please make sure that your TeX distribution is up-to-date.
2525 LuaTeX-ja (luatexja-fontspec.sty) requires xunicode.sty v0.981.
2626
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.
2828
2929 2. If you must/want to install manually:
3030
--- a/tool/release.mak
+++ /dev/null
@@ -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~
--- /dev/null
+++ b/tool/release.sh
@@ -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+