File tree 2 files changed +24
-0
lines changed 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -51,3 +51,7 @@ secret.org
51
51
.emacs.desktop *
52
52
. * ~
53
53
agent /*
54
+
55
+ # # package directory
56
+ literate-emacs-starter-kit- * /
57
+ literate-emacs-starter-kit- * .tar
Original file line number Diff line number Diff line change @@ -29,5 +29,25 @@ doc/index.html:
29
29
cp doc/starter-kit.html doc/index.html
30
30
echo " Documentation published to doc/"
31
31
32
+ # Packaging
33
+ NAME =literate-emacs-starter-kit
34
+ VERSION =1.0.0
35
+ DOC =A literate version of the Emacs Starter Kit.
36
+ REQ =(emacs "24.3")
37
+ DEFPKG =(define-package "$(NAME ) " "$(VERSION ) "\n "$(DOC ) "\n (quote $(REQ ) ))
38
+ PACKAGE =$(NAME ) -$(VERSION )
39
+
40
+ $(PACKAGE ) : $(wildcard * .org) init.el Makefile
41
+ mkdir -p $(PACKAGE )
42
+ cp $^ $(PACKAGE )
43
+ $(BATCH ) starter-kit.org --eval " (org-export-to-file 'ascii \" $( PACKAGE) /README\" )"
44
+ echo -e ' $(DEFPKG)' > $(PACKAGE ) /$(NAME ) -pkg.el
45
+
46
+ $(PACKAGE ) .tar : $(PACKAGE )
47
+ tar cf $@ $<
48
+
49
+ package : $(PACKAGE ) .tar
50
+
32
51
clean :
33
52
rm -f * .elc * .aux * .tex * .pdf starter-kit* .el starter-kit* .html doc/* html * ~ .starter-kit* .part.org
53
+ rm -rf $(PACKAGE ) .tar $(PACKAGE )
You can’t perform that action at this time.
0 commit comments