blob: da45a139b8b8741a5e341f166be81fe06c8624be (
plain) (
blame)
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
29
|
#!/bin/sh
CP=${CP:-/bin/cp}
usr_tmac=/usr/share/tmac
local_tmac=${PKG_PREFIX}/share/groff/tmac
elispdir=${PKG_PREFIX}/lib/mule/site-lisp
OptionStart=";;; Jman configuration options"
OptionEnd=";;; End of Jman configuration options"
if [ "X$2" = X"POST-INSTALL" ]; then
${CP} -p ${usr_tmac}/tmac.an ${local_tmac}
${CP} -p ${usr_tmac}/tmac.groff_an ${local_tmac}
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
|