build
configure
Makefile
+deb-build
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.6 2002/09/28 11:39:06 mdw Exp $
+## $Id: Makefile.am,v 1.7 2003/11/29 23:35:38 mdw Exp $
##
## Makefile for skel
##
##----- Revision history ----------------------------------------------------
##
## $Log: Makefile.am,v $
+## Revision 1.7 2003/11/29 23:35:38 mdw
+## Debianization.
+##
## Revision 1.6 2002/09/28 11:39:06 mdw
## Haskell support
##
EXTRA_DIST = \
$(pkgdata_DATA) \
- skel-init.el
+ skel-init.el \
+ debian/control debian/copyright debian/changelog debian/rules \
+ debian/skel.emacsen-install debian/skel.emacsen-remove \
+ debian/skel.emacsen-startup
##----- That's all, folks ---------------------------------------------------
-dnl -*-fundamental-*-
+dnl -*-m4-*-
dnl
-dnl $Id: configure.in,v 1.6 1999/12/22 17:09:40 mdw Exp $
+dnl $Id: configure.in,v 1.7 2003/11/29 23:35:38 mdw Exp $
dnl
dnl Configuration script for skel
dnl
dnl ----- Revision history --------------------------------------------------
dnl
dnl $Log: configure.in,v $
+dnl Revision 1.7 2003/11/29 23:35:38 mdw
+dnl Debianization.
+dnl
dnl Revision 1.6 1999/12/22 17:09:40 mdw
dnl Version bump.
dnl
dnl
AC_INIT(skel.el.in)
-AM_INIT_AUTOMAKE(skel, 1.0.3)
+AM_INIT_AUTOMAKE(skel, 1.1.0)
AM_PATH_LISPDIR
mdw_prefix="$prefix"
--- /dev/null
+skel *.debhelper
--- /dev/null
+skel (1.1.0) experimental; urgency=low
+
+ * Debianization!
+
+ -- Mark Wooding <mdw@nsict.org> Sun, 9 Nov 2003 17:30:33 +0000
--- /dev/null
+Source: skel
+Section: editors
+Priority: extra
+Build-Depends: mlib-dev (>= 2.0.2)
+Maintainer: Mark Wooding <mdw@nsict.org>
+Standards-Version: 3.1.1
+
+Package: skel
+Architecture: all
+Depends: emacsen
+Description: Build initial source files from skeletons
+ Skel lets you define `skeletons' (templates) for various kinds of files.
+ When you ask it to make a new file, it finds the appropriate skeleton and
+ attempts to fill in placeholder markers. It will read attributes from
+ configuration files it finds in the target directory or its parents; if
+ there are any references it still can't resolve then it asks the user.
--- /dev/null
+Skel is copyright (c) 2003 Straylight/Edgeware.
+
+Skel 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 2 of the License, or
+(at your option) any later version.
+
+Skel 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 a copy of the GNU General Public License in
+/usr/share/common-licenses/GPL; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
--- /dev/null
+#! /usr/bin/make -f
+
+export DH_COMPAT = 4
+
+build:
+ rm -rf build deb-build
+ mkdir deb-build
+ cd deb-build; ../configure --prefix=/usr
+ make -C deb-build
+ touch build
+
+clean:
+ dh_clean
+ rm -rf deb-build build
+
+install: build
+ dh_clean
+ make -C deb-build install DESTDIR=`pwd`/debian/skel
+ mkdir debian/skel/usr/share/emacs/site-lisp/skel
+ mv debian/skel/usr/share/emacs/site-lisp/skel.el \
+ debian/skel/usr/share/emacs/site-lisp/skel
+ rm debian/skel/usr/share/emacs/site-lisp/*.el
+ mkdir -p debian/skel/etc/skel
+
+binary-indep: install
+ dh_testdir -i
+ dh_testroot -i
+ dh_compress -i
+ dh_installdocs -i
+ dh_gencontrol -i
+ dh_installemacsen -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+binary-arch:
+
+binary: binary-indep binary-arch
+
+source:
+ rm -rf deb-build/*.tar.gz deb-build/=deb=
+ make -C deb-build dist
+ mkdir deb-build/=deb=
+ cd deb-build/=deb=; tar xvfz ../*.tar.gz
+ d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/*
+ rm -rf deb-build/=deb=
+
+.PHONY: binary binary-arch binary-indep clean install source
--- /dev/null
+#! /bin/sh
+
+set -e
+
+package=skel
+flavour=$1
+if [ $flavour = emacs ]; then
+ echo install/$package: Ignoring emacsen flavour $flavour
+ exit
+fi
+echo install/$package: Handling install of emacsen flavour $flavour
+
+FILES=skel.el
+EMACS=/usr/bin/$flavour
+EL=/usr/share/emacs/site-lisp/skel
+ELC=/usr/share/$flavour/site-lisp/skel
+tmp=tmp.$package
+mkdir -p $ELC/$tmp
+(cd $EL; cp $FILES $ELC/$tmp)
+cd $ELC/$tmp
+$EMACS -batch -f batch-byte-compile $FILES
+cd ..
+mv $tmp/*.elc .
+rm -rf $tmp
--- /dev/null
+#! /bin/sh
+
+set -e
+
+package=skel
+flavour=$1
+if [ $flavour = emacs ]; then
+ echo install/$package: Ignoring emacsen flavour $flavour
+ exit
+fi
+echo install/$package: Handling install of emacsen flavour $flavour
+
+ELC=/usr/share/$flavour/site-lisp/skel
+cd $ELC
+rm -f *.elc
--- /dev/null
+(debian-pkg-add-load-path-item (concat "/usr/share/"
+ (symbol-name flavor)
+ "/skel"))
+(autoload 'skel-create-file "skel" nil t)
+(autoload 'skel-create-file-other-window "skel" nil t)
+(autoload 'skel-create-file-other-frame "skel" nil t)
+(provide 'skel-init) ;; For compatibility with existing .emacs files
;;; -*-emacs-lisp-*-
;;;
-;;; $Id: skel.el.in,v 1.3 1999/08/20 07:40:51 mdw Exp $
+;;; $Id: skel.el.in,v 1.4 2003/11/29 23:35:38 mdw Exp $
;;;
;;; Filling in skeletons
;;;
;;;----- Revision history ---------------------------------------------------
;;;
;;; $Log: skel.el.in,v $
+;;; Revision 1.4 2003/11/29 23:35:38 mdw
+;;; Debianization.
+;;;
;;; Revision 1.3 1999/08/20 07:40:51 mdw
;;; Slight twiddles to the Lisp code.
;;;
(defvar skel-directory-list '(".skel" "")
"*List of directory names which contain skeleton files.")
-(defvar skel-skeleton-path '("@skeldir@" "~/skel" "~/src/skel")
+(defvar skel-skeleton-path '("/etc/skel" "@skeldir@" "~/skel" "~/src/skel")
"*List of directories to search for skeleton data anyway.")
(defvar skel-skelrc '(".skelrc" "skelrc")