diff -ruN -x '*~' psvn/fink/install psvn.patched/fink/install --- psvn/fink/install 1969-12-31 19:00:00.000000000 -0500 +++ psvn.patched/fink/install 2007-03-25 18:16:30.000000000 -0400 @@ -0,0 +1,29 @@ +#!/bin/sh + +set -e + +FLAVOR=$1 +echo install/psvn: Handling install of emacsen flavor ${FLAVOR} + +byte_compile_options="-batch -f batch-byte-compile" +el_files="psvn.el" +el_dir=@PREFIX@/share/emacs/site-lisp/psvn/ +elc_dir=@PREFIX@/share/${FLAVOR}/site-lisp/psvn/ + +if [ ${FLAVOR} != emacs ] +then + echo install/psvn: byte-compiling for ${FLAVOR} + + [ -d ${elc_dir} ] || mkdir ${elc_dir} + + # Copy the temp .el files + (cd ${el_dir} && cp ${el_files} ${elc_dir}) + + # Byte compile them + (cd ${elc_dir} && ${FLAVOR} ${byte_compile_options} ${el_files} 2> /dev/null) + + # Remove the redundant .el files + # Presumes that any .el files in the dir are trash. + rm ${elc_dir}/*.el +fi +exit 0; diff -ruN -x '*~' psvn/fink/remove psvn.patched/fink/remove --- psvn/fink/remove 1969-12-31 19:00:00.000000000 -0500 +++ psvn.patched/fink/remove 2007-03-25 18:25:42.000000000 -0400 @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +FLAVOR=$1 +elc_dir=@PREFIX@/share/${FLAVOR}/site-lisp/psvn + +echo remove/psvn: Handling removal of emacsen flavor ${FLAVOR} + +if [ ${FLAVOR} != emacs ] +then + echo emacsen-common: purging byte-compiled files for ${FLAVOR} + rm -f ${elc_dir}/*.elc + [ -d ${elc_dir} -a `ls -la ${elc_dir}|wc -l` -gt 3 ] && rmdir ${elc_dir} +fi +exit 0;