Skip to content

Commit

Permalink
Added packaging files.
Browse files Browse the repository at this point in the history
Added files to build and package the info file for Marmalade.
  • Loading branch information
Aidan Gauland committed Sep 24, 2012
1 parent 46bb417 commit 491fe0d
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Makefile
@@ -0,0 +1,44 @@
# package.el multi-file package install

# These are the variables that are specific to the package
NAME=eshell-manual
VERSION=$(shell git show | head -n1 | cut -d' ' -f2 | head -c8)
DOC="An updated manual for Eshell."

# Everything beyond here should be generic
package_parts = $(shell cat build-parts.txt)
PACKAGE=$(NAME)-$(VERSION)
TARBALL=$(PACKAGE).tar

all: tarball

# Really would like this to clean the elc files of the package_parts
clean-elc:
rm -f *.elc

clean: clean-elc
rm -f eshell.info
rm -f dir
rm -f $(TARBALL)
rm -rf $(PACKAGE)
rm -f $(NAME)-pkg.el

tarball: $(TARBALL)

$(TARBALL): $(PACKAGE) $(PACKAGE)/$(NAME)-pkg.el
tar cf $@ $<

$(PACKAGE): $(package_parts)
mkdir $@
cp $(package_parts) $@

$(PACKAGE)/$(NAME)-pkg.el: $(PACKAGE)
echo "(define-package \"$(NAME)\" \"$(VERSION)\" \"$(DOC)\")" > $@

dir: eshell.info
install-info --dir=dir eshell.info

eshell.info:
makeinfo -o $@ eshell.texi

# End
3 changes: 3 additions & 0 deletions build-parts.txt
@@ -0,0 +1,3 @@
dir
eshell.info
eshell-manual.el
29 changes: 29 additions & 0 deletions eshell-manual.el
@@ -0,0 +1,29 @@
;;; eshell-info.el --- dummy elisp for the eshell info package

;; Author: Aidan Gauland <aidalgol@no8wireless.co.nz>
;; Keywords: lisp eshell

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; This file does nothing at all

;;; Code:



(provide 'eshell-info)

;;; eshell-info.el ends here

0 comments on commit 491fe0d

Please sign in to comment.