]> code.delx.au - gnu-emacs-elpa/commitdiff
Added Makefile with packaging commands.
authorNikolaj Schumacher <git@nschum.de>
Wed, 15 Apr 2009 07:13:54 +0000 (09:13 +0200)
committerNikolaj Schumacher <git@nschum.de>
Wed, 15 Apr 2009 11:38:38 +0000 (13:38 +0200)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..d49adf3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+package: *.el
+       @ver=`grep -o "Version: .*" company.el | cut -c 10-`; \
+       tar cjvf company-$$ver.tar.bz2 --mode 644 `git ls-files '*.el' | xargs`
+
+elpa: *.el
+       @version=`grep -o "Version: .*" company.el | cut -c 10-`; \
+       dir=company-$$version; \
+       mkdir -p "$$dir"; \
+       cp `git ls-files '*.el' | xargs` company-$$version; \
+       echo "(define-package \"company\" \"$$version\" \
+       \"extensible inline text completion mechanism\")" \
+       > "$$dir"/company-pkg.el; \
+       tar cvf company-$$version.tar --mode 644 "$$dir"
+
+clean:
+       @rm -rf company-*/ company-*.tar company-*.tar.bz2