diff -Naur --exclude='*~' tuareg-mode-1.46.2/fink/50tuareg.el tuareg-mode-1.46.2.fink/fink/50tuareg.el --- tuareg-mode-1.46.2/fink/50tuareg.el 1969-12-31 18:00:00.000000000 -0600 +++ tuareg-mode-1.46.2.fink/fink/50tuareg.el 2007-12-26 20:20:20.000000000 -0600 @@ -0,0 +1,3 @@ +(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t) +(autoload 'camldebug "camldebug" "Run the Caml debugger" t) +(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist)) diff -Naur --exclude='*~' tuareg-mode-1.46.2/fink/emacsen-install tuareg-mode-1.46.2.fink/fink/emacsen-install --- tuareg-mode-1.46.2/fink/emacsen-install 1969-12-31 18:00:00.000000000 -0600 +++ tuareg-mode-1.46.2.fink/fink/emacsen-install 2007-12-26 20:42:51.000000000 -0600 @@ -0,0 +1,36 @@ +#!/bin/bash -e +# +# install file for the fink tuareg-mode emacs package. + +set -o posix + +FLAVOR=${1} + +echo >&2 "install/tuareg-mode: Handling install of emacsen flavor ${FLAVOR}" + +if [ ${FLAVOR} == emacs20 ] +then + echo "install/tuareg-mode: Skipping unsupported flavor ${FLAVOR}" + exit 0 +fi + +if [ ${FLAVOR} == emacs ] +then + # Nothing to do, say nothing + exit 0 +fi + +echo >&2 -n "install/tuareg-mode: Byte-compiling for ${FLAVOR}..." +mkdir -p @PREFIX@/share/${FLAVOR}/site-lisp/tuareg +for i in tuareg camldebug; do + ln -s -f @PREFIX@/share/emacs/site-lisp/tuareg/${i}.el @PREFIX@/share/${FLAVOR}/site-lisp/tuareg +done + +cd @PREFIX@/share/${FLAVOR}/site-lisp/tuareg; + +(${FLAVOR} --no-init-file -batch --eval "(push \".\" load-path)" -f batch-byte-compile tuareg.el camldebug.el 2>&1) | gzip -9qf > @PREFIX@/share/doc/tuareg-mode/CompilationLog-${FLAVOR}.gz + +echo >&2 "done." +echo >&2 "install/tuareg-mode: Compilation log saved in @PREFIX@/share/doc/tuareg-mode/CompilationLog-${FLAVOR}.gz." + +exit 0 diff -Naur --exclude='*~' tuareg-mode-1.46.2/fink/emacsen-remove tuareg-mode-1.46.2.fink/fink/emacsen-remove --- tuareg-mode-1.46.2/fink/emacsen-remove 1969-12-31 18:00:00.000000000 -0600 +++ tuareg-mode-1.46.2.fink/fink/emacsen-remove 2007-12-26 20:26:00.000000000 -0600 @@ -0,0 +1,27 @@ +#!/bin/bash -e +# +# This is the Fink version of the tuareg-mode emacs package. +set -o posix + +FLAVOR=${1} + +echo "remove/tuareg-mode: Handling removal for emacsen flavor ${FLAVOR}" + +if [ ${FLAVOR} == emacs20 ] +then + echo "remove/tuareg-mode: Skipping unsupported flavor ${FLAVOR}" + exit 0 +fi + +if [ ${FLAVOR} == emacs ] +then + # Nothing + exit 0 +fi + +echo >&2 -n "remove/tuareg-mode: Purging compilation log and byte-compiled files for ${FLAVOR}..." +rm -f @PREFIX@/share/doc/tuareg-mode/CompilationLog-${FLAVOR}.gz +rm -Rf @PREFIX@/share/${FLAVOR}/site-lisp/tuareg +echo >&2 "done." + +exit 0