[DRE-commits] [SCM] tdiary-contrib.git branch, master, updated. debian/3.1.20120506-1-5-g6dace1f

Taku YASUI tach at debian.org
Sat May 19 15:58:01 UTC 2012


The following commit has been merged in the master branch:
commit 7b77940e4962928cc370b0ab217bd1ce624708d8
Author: Taku YASUI <tach at debian.org>
Date:   Sun May 20 00:49:11 2012 +0900

    Use symlink instead of copy for compiling

diff --git a/debian/tdiary-mode.emacsen-install b/debian/tdiary-mode.emacsen-install
index c8ddafe..c1e8f21 100644
--- a/debian/tdiary-mode.emacsen-install
+++ b/debian/tdiary-mode.emacsen-install
@@ -22,6 +22,7 @@ echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
 FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
 
 ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+TOELDIR=../../../emacs/site-lisp/$PACKAGE
 ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
 
 # Install-info-altdir does not actually exist. 
@@ -35,8 +36,10 @@ rm -rf ${ELCDIR}
 install -m 755 -d ${ELCDIR}
 cd ${ELDIR}
 FILES=`echo *.el`
-cp ${FILES} ${ELCDIR}
 cd ${ELCDIR}
+for f in $FILES; do
+    ln -s $TOELDIR/$f .
+done
 
 cat << EOF > path.el
 (setq load-path (cons "." load-path) byte-compile-warnings nil)
@@ -44,9 +47,6 @@ EOF
 ${FLAVOR} ${FLAGS} ${FILES} > ${LOG} 2>&1
 gzip -9 ${LOG}
 
-rm -f *.el path.el
-
-# create symlinks to the flavor dir for source link
-ln -s ${FILES} ${ELCDIR}
+rm -f path.el
 
 exit 0

-- 
tdiary-contrib.git



More information about the Pkg-ruby-extras-commits mailing list