[Pkg-jed-commit] r938 - jed-extra/trunk/debian
Guenter Milde
milde-guest at alioth.debian.org
Tue Oct 16 10:34:45 UTC 2007
Author: milde-guest
Date: 2007-10-16 10:34:44 +0000 (Tue, 16 Oct 2007)
New Revision: 938
Modified:
jed-extra/trunk/debian/compile
Log:
remove all generated files also at install, flatten code
Modified: jed-extra/trunk/debian/compile
===================================================================
--- jed-extra/trunk/debian/compile 2007-10-15 20:49:38 UTC (rev 937)
+++ jed-extra/trunk/debian/compile 2007-10-16 10:34:44 UTC (rev 938)
@@ -1,26 +1,25 @@
#!/bin/sh -e
+# Base Directory of jed-extra S-Lang scripts
LIBDIR=/usr/share/jed/jed-extra
+
+# S-Lang script for setup, preparsing, and documentation generation
PREPARSE=/usr/share/jed/compile/jed-extra-preparse.sl
-case "$1" in
- install|remove)
- # Remove the files in both cases, because some .sl files may have
- # gone and some .slc files may not work with the new jed version
- find $LIBDIR \( -name \*.slc -o -name \*.dfa \) -print0 \
- | xargs -0 --no-run-if-empty rm
+# Generated files (remove in both cases, because dirs or *.sl files
+# may have been (re)moved or renamed)
+FILES='( -name *.slc -o -name *.dfa -o -name ini.sl* -o -name libfuns.txt* )'
- case "$1" in
- install)
- jed-script $PREPARSE || true
- # don't worry if jed-script is missing, because jed runs this
- # script again at installation
- ;;
- remove)
- find $LIBDIR \( -name ini.sl\* -o -name libfuns.txt \) \
- -print0 | xargs -0 --no-run-if-empty rm
- esac
+case "$1" in
+ install)
+ find $LIBDIR $FILES -print0 | xargs -0 --no-run-if-empty rm
+ jed-script $PREPARSE || true
+ # don't worry if jed-script is missing, because jed runs this
+ # script again at installation
;;
+ remove)
+ find $LIBDIR $FILES -print0 | xargs -0 --no-run-if-empty rm
+ ;;
*)
echo "unknown argument --> \"$1"\" >&2
exit 1
More information about the Pkg-jed-commit
mailing list