aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-07-18 21:07:23 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2009-07-18 21:07:23 -0400
commit6d5bc5133e7d76dba7edd38a8e2d55134dd66b11 (patch)
tree31c88093de1885d4d83ecbe323fd75de6602aa42 /src
parent8eb45cf365f045b9d5b5a9bc601f78fd75cb7cd9 (diff)
downloadtextadept-6d5bc5133e7d76dba7edd38a8e2d55134dd66b11.tar.gz
textadept-6d5bc5133e7d76dba7edd38a8e2d55134dd66b11.zip
Updated src/Makefile to build binary and source archives for release.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 98095e4b..e058cb80 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -89,3 +89,34 @@ $(TEXTADEPT_RC): textadept.rc
$(WINDRES) $^ $@
clean:
rm ../$(TEXTADEPT) *.o
+
+# Package (Note: pass 'VERSION=[release version]' to 'make')
+
+ifndef WIN32
+ZIP = tar czf
+PACKAGE = textadept_$(value VERSION).tgz
+UNZIP = tar xzf
+else
+ZIP = zip -r
+PACKAGE = textadept_$(value VERSION).win32.zip
+UNZIP = unzip
+endif
+SRCPACKAGE = textadept.src.zip
+
+RELEASEDIR = textadept_$(value VERSION)
+release: ../$(TEXTADEPT)
+ hg archive $(RELEASEDIR)
+ rm $(RELEASEDIR)/.hg*
+ sh -c 'cd ../ && ./update_doc'
+ cp -r ../doc $(RELEASEDIR)
+ svn export http://scite-tools.googlecode.com/svn/branches/scite-st/lexers \
+ $(RELEASEDIR)/lexers
+ cp ../$(TEXTADEPT) $(RELEASEDIR)
+ $(ZIP) $(PACKAGE) $(RELEASEDIR)
+ rm -r $(RELEASEDIR)
+source: $(PACKAGE)
+ $(UNZIP) $(PACKAGE)
+ cp -r lua scintilla-st gcocoadialog $(RELEASEDIR)/src/
+ rm $(RELEASEDIR)/$(TEXTADEPT)
+ zip -r $(SRCPACKAGE) $(RELEASEDIR)
+ rm -r $(RELEASEDIR)