blob: 4bd69c476b81ec1c0e070eb5eed6706814f568d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
TOUCH=${TOUCH:-/usr/bin/touch}
elispdir=${PKG_PREFIX}/lib/mule/site-lisp
OptionStart=";;; Jman configuration options"
OptionEnd=";;; End of Jman configuration options"
if [ "X$2" = X"POST-INSTALL" ]; then
if [ ! -f ${elispdir}/site-start.el ]; then
${TOUCH} ${elispdir}/site-start.el
fi
if [ "`grep \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then
sed -e "/^${OptionStart}/,/^${OptionEnd}/d" \
${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
mv ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
fi
echo "Adding \"Jman\" entry to ${elispdir}/site-start.el"
echo "${OptionStart}" >> ${elispdir}/site-start.el
echo "(setq load-path (cons \"${elispdir}/jman\" load-path))" \
>> ${elispdir}/site-start.el
echo "(autoload 'jman \"jman\" nil t)" >> ${elispdir}/site-start.el
echo "${OptionEnd}" \
>> ${elispdir}/site-start.el
exit 0
fi
|