blob: d40fbb640acece523a17303de2ecb93a4b50170a (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $FreeBSD$
GREP=/usr/bin/grep
SED=/usr/bin/sed
WITH_DVIPSK="%%WITH_DVIPSK%%"
SUFFIX=tetex
MKTEXLSR=%%MKTEXLSR%%
case $2 in
POST-INSTALL)
if [ ! -f %%TEXMFCNF%% ]; then
cp %%TEXMFCNF%%.${SUFFIX} %%TEXMFCNF%%
echo "Notice: installing %%TEXMFCNF%%.${SUFFIX} -> %%TEXMFCNF%%."
%%MKTEXLSR%%
elif ${SED} q < %%TEXMFCNF%% | ${GREP} original > /dev/null 2>&1; then
cp %%TEXMFCNF%%.${SUFFIX} %%TEXMFCNF%%
echo "Notice: installing %%TEXMFCNF%%.${SUFFIX} -> %%TEXMFCNF%%."
%%MKTEXLSR%%
else
echo "Notice: %%TEXMFCNF%% is not installed."
echo " Merge from %%TEXMFCNF%%.${SUFFIX} manually."
fi
case "${WITH_DVIPSK}" in
"") exit 0 ;;
esac
if [ ! -f %%DVIPSKCNF%% ]; then
cp %%DVIPSKCNF%%.${SUFFIX} %%DVIPSKCNF%%
echo "Notice: installing %%DVIPSKCNF%%.${SUFFIX} -> %%DVIPSKCNF%%."
%%MKTEXLSR%%
elif ${SED} q < %%TEXMFCNF%% | ${GREP} "public domain" > /dev/null 2>&1; then
cp %%DVIPSKCNF%%.${SUFFIX} %%DVIPSKCNF%%
echo "Notice: installing %%DVIPSKCNF%%.${SUFFIX} -> %%DVIPSKCNF%%."
%%MKTEXLSR%%
else
echo "Notice: %%DVIPSKCNF%% is not installed."
echo " Merge from %%DVIPSKCNF%%.${SUFFIX} manually."
fi
;;
DEINSTALL)
if [ -f %%TEXMFCNF%% ]; then
if ${SED} q < %%TEXMFCNF%% | ${GREP} original > /dev/null 2>&1; then
rm -f %%TEXMFCNF%%
echo "Notice: %%TEXMFCNF%% is removed."
else
echo "Notice: %%TEXMFCNF%% is NOT removed."
echo " Remove manually."
fi
fi
case "${WITH_DVIPSK}" in
"") exit 0 ;;
esac
if [ -f %%DVIPSKCNF%% ]; then
if ${SED} q < %%DVIPSKCNF%% | ${GREP} "public domain" > /dev/null 2>&1; then
rm -f %%DVIPSKCNF%%
echo "Notice: %%DVIPSKCNF%% is removed."
else
echo "Notice: %%DVIPSKCNF%% is NOT removed."
echo " Remove manually."
fi
fi
;;
esac
|