From 3b7222b35e4ec15902804b9b1741b9e0f2d45646 Mon Sep 17 00:00:00 2001 From: Nikolaj Schumacher Date: Wed, 15 Apr 2009 09:13:54 +0200 Subject: [PATCH] Added Makefile with packaging commands. --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..d49adf31e --- /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 -- 2.39.2