diff -Nurd -x'*~' psvn.orig/fink/50psvn-vars.el psvn/fink/50psvn-vars.el --- psvn.orig/fink/50psvn-vars.el 1969-12-31 19:00:00.000000000 -0500 +++ psvn/fink/50psvn-vars.el 2010-11-23 04:12:21.000000000 -0500 @@ -0,0 +1 @@ +(require 'psvn) diff -Nurd -x'*~' psvn.orig/fink/install psvn/fink/install --- psvn.orig/fink/install 1969-12-31 19:00:00.000000000 -0500 +++ psvn/fink/install 2010-11-23 04:11:34.000000000 -0500 @@ -0,0 +1,26 @@ +#!/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/ +el_var_file="50psvn-vars.el" +el_var_dir=@PREFIX@/etc/emacs/site-start.d/ +elc_var_dir=@PREFIX@/etc/${FLAVOR}/site-start.d/ +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}) + (cd ${el_var_dir} && cp ${el_var_file} ${elc_var_dir}) + # Byte compile them + (cd ${elc_dir} && ${FLAVOR} ${byte_compile_options} ${el_files} 2> /dev/null) + (cd ${elc_var_dir} && ${FLAVOR} ${byte_compile_options} ${el_var_file} 2> /dev/null) + # Remove the redundant .el files. Presumes that any .el files in + # the dir are trash. + rm ${elc_dir}/*.el ${elc_var_dir}/*.el +fi +exit 0; diff -Nurd -x'*~' psvn.orig/fink/remove psvn/fink/remove --- psvn.orig/fink/remove 1969-12-31 19:00:00.000000000 -0500 +++ psvn/fink/remove 2010-11-23 04:11:45.000000000 -0500 @@ -0,0 +1,14 @@ +#!/bin/sh +set -e +FLAVOR=$1 +elc_dir=@PREFIX@/share/${FLAVOR}/site-lisp/psvn +elc_var_file="50psvn-vars.elc" +elc_var_dir=@PREFIX@/etc/${FLAVOR}/site-start.d/ +echo remove/psvn: Handling removal of emacsen flavor ${FLAVOR} +if [ ${FLAVOR} != emacs ] +then + echo remove/psvn-mode: Purging byte-compiled files for ${FLAVOR} + rm -f ${elc_dir}/*.elc ${elc_var_dir}/${elc_var_file} + [ -d ${elc_dir} -a `ls -la ${elc_dir}|wc -l` -le 3 ] && rmdir ${elc_dir} +fi +exit 0;