[SCM] ecasound/master: Update emacsen install and remove scripts

ghedo at users.alioth.debian.org ghedo at users.alioth.debian.org
Sun May 6 15:06:45 UTC 2012


The following commit has been merged in the master branch:
commit b4df58ba15f82e80f174d3cdac1a87160619f25f
Author: Alessandro Ghedini <al3xbio at gmail.com>
Date:   Sun May 6 16:48:50 2012 +0200

    Update emacsen install and remove scripts
    
    Closes: 671568

diff --git a/debian/ecasound-el.emacsen-install b/debian/ecasound-el.emacsen-install
index 25e3265..4e7e374 100644
--- a/debian/ecasound-el.emacsen-install
+++ b/debian/ecasound-el.emacsen-install
@@ -1,51 +1,28 @@
-#! /bin/sh -e
+#!/bin/sh -e
 # /usr/lib/emacsen-common/packages/install/ecasound-el
 
-# Written by Jim Van Zandt <jrv at vanzandt.mv.com>, borrowing heavily
-# from the install scripts for gettext by Santiago Vila
-# <sanvila at ctv.es> and octave by Dirk Eddelbuettel <edd at debian.org>.
-# modified by Junichi Uekawa for ecasound, 11 Jan 2003
-
 FLAVOR=$1
 PACKAGE=ecasound-el
 
-case ${FLAVOR} in 
-    emacs|emacs20)
-	exit 0;;
-    *)
-	;;
-esac
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
 
 echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
 
-#FLAVORTEST=`echo $FLAVOR | cut -c-6`
-#if [ ${FLAVORTEST} = xemacs ] ; then
-#    SITEFLAG="-no-site-file"
-#else
-#    SITEFLAG="--no-site-file"
-#fi
 FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
 
 ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
 ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
 
-# Install-info-altdir does not actually exist. 
-# Maybe somebody will write it.
-if test -x /usr/sbin/install-info-altdir; then
-    echo install/${PACKAGE}: install Info links for ${FLAVOR}
-    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
-fi
-
 install -m 755 -d ${ELCDIR}
 cd ${ELDIR}
 FILES=`echo *.el`
-cp ${FILES} ${ELCDIR}
+ln -sf ${ELDIR}/*.el ${ELCDIR}
 cd ${ELCDIR}
 
 cat << EOF > path.el
 (setq load-path (cons "." load-path) byte-compile-warnings nil)
 EOF
 ${FLAVOR} ${FLAGS} ${FILES}
-rm -f *.el path.el
+rm -f path.el
 
 exit 0
diff --git a/debian/ecasound-el.emacsen-remove b/debian/ecasound-el.emacsen-remove
index 5af5d40..5ca10cb 100644
--- a/debian/ecasound-el.emacsen-remove
+++ b/debian/ecasound-el.emacsen-remove
@@ -1,20 +1,10 @@
 #!/bin/sh -e
 # /usr/lib/emacsen-common/packages/remove/ecasound-el
-#modified for ecasound-el 11 Jan 2003, Junichi Uekawa
 
 FLAVOR=$1
 PACKAGE=ecasound-el
 
-case ${FLAVOR} in
-    emacs|emacs20)
-	;;
-    *)
-	if test -x /usr/sbin/install-info-altdir; then
-	    echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
-	    install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/#PACKAGE#.info.gz
-	fi
-	
+if [ ${FLAVOR} != emacs ]; then
 	echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
 	rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
-	;;
-esac
+fi

-- 
ecasound packaging



More information about the pkg-multimedia-commits mailing list