OSDN Git Service

release の仕方を試行錯誤
authorKUROKI Yusuke <kuroky@users.sourceforge.jp>
Sun, 22 Apr 2012 06:52:50 +0000 (15:52 +0900)
committerKUROKI Yusuke <kuroky@users.sourceforge.jp>
Sun, 22 Apr 2012 07:15:26 +0000 (16:15 +0900)
README
tool/release.mak [new file with mode: 0644]

diff --git a/README b/README
index 9c4a67d..ac58dc3 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-The LuaTeX-ja Package 20120422.0
+The LuaTeX-ja Package $VER$
 --------------------------------
 Copyright (c) 2011--2012 The LuaTeX-ja project
 License: modified BSD (see COPYING)
@@ -28,9 +28,11 @@ Installation
 
 2. If you must/want to install manually:
 
-   a. Download the source archive from CTAN, or HEAD in the Git repository by
+   a. Download the source archive from CTAN,
+      or tagged as $VER$ in the Git repository by
       <http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git
-                                                    ;a=snapshot;h=HEAD;sf=tgz>
+                              ;a=snapshot;h=$VER$;sf=tgz>
+
    b. Extract the archive and put src/ into your TEXMF tree.
       An example location is TEXMF/tex/luatex/luatexja.
 
diff --git a/tool/release.mak b/tool/release.mak
new file mode 100644 (file)
index 0000000..c073a88
--- /dev/null
@@ -0,0 +1,15 @@
+#-*- mode: Makefile -*-
+
+PROJECT=luatexja
+DIR=.
+VER=HEAD
+
+all:
+       perl -pi.bak -e 's/\$$VER\$$/$(VER)/g' README
+       rm -f README.bak
+       git add README
+       git commit -m 'Releases $(VER)'
+       git tag $(VER)
+       git archive --format=tar --prefix=$(PROJECT)-$(VER) $(VER) | gzip > $(DIR)/$(PROJECT)-$(VER).tar.gz
+       git push origin $(VER)
+       git reset --hard HEAD~
\ No newline at end of file