source: trunk/athena/bin/discuss/debian/debathena-discuss-emacs.emacsen-install @ 22699

Revision 22699, 968 bytes checked in by ghudson, 17 years ago (diff)
Snapshot the Debathena materials for Athena packages into "debian" subdirs of the relevant Athena sources, pulling from /mit/debathena/packages/athena. Some big caveats: - Six Debathena packages are excluded because the current Athena 10 project plan does not call for building them: config-console console, dotfiles, glue, olc, and xscreensaver. (dotfiles and glue will be replaced with new Debathena-specific packages.) - Debathena does not cover all Athena packages which are called for to be built; Debian directories for these packages will have to be created. - Some of the packages contain patches, managed by quilt. The plan is to review and apply (or otherwise address) these patches and eliminate them. - The debian/rules files for Debathena packages are designed for use with the result of the athena-tarball script (from /mit/debathena/packages/athena/bin which I don't currently plan to import), and will not work with the raw source directories. The plan here is to write a CDBS extension package containing rules to handle raw Athena source directories, and then modify the rules files appropriately.
Line 
1#! /bin/sh -e
2# /usr/lib/emacsen-common/packages/install/debathena-discuss-emacs
3
4# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
5# from the install scripts for gettext by Santiago Vila
6# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
7
8FLAVOR=$1
9PACKAGE=debathena-discuss-emacs
10
11if [ ${FLAVOR} = emacs ]; then exit 0; fi
12
13echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
14
15#FLAVORTEST=`echo $FLAVOR | cut -c-6`
16#if [ ${FLAVORTEST} = xemacs ] ; then
17#    SITEFLAG="-no-site-file"
18#else
19#    SITEFLAG="--no-site-file"
20#fi
21FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
22
23ELDIR=/usr/share/emacs/site-lisp
24ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
25
26install -m 755 -d ${ELCDIR}
27cd ${ELDIR}
28FILES=`echo discuss*.el`
29cp ${FILES} ${ELCDIR}
30cd ${ELCDIR}
31
32cat << EOF > path.el
33(setq load-path (cons "." load-path) byte-compile-warnings nil)
34EOF
35${FLAVOR} ${FLAGS} ${FILES}
36rm -f *.el path.el
37
38exit 0
Note: See TracBrowser for help on using the repository browser.