blob: b664316cda61e39d564d9fe8350523e94f114b5e (
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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#!/bin/sh
# 20190217
# 190217from
pathM="/Applications/Maxima.app/Contents/Resources/maxima.sh"
pathMn="/Applications/Maxima.app/Contents/Resources/opt/bin/maxima"
# 109217to
cd `dirname $0`
if [ -e ../ketcindyfolder ]; then
cd ../ketcindyfolder
fi
echo Files will be copied from
echo " "`pwd`/work
changesetting=/.ketcindy.conf #181017
dist=~/ketcindy #180913
cp -r -p work/ ${dist}/
if [ $? -gt 0 ]; then
echo Error:$?
sleep 5
else
echo Workfolder has been generated as ${dist}
echo " "This folder can be moved to any place ##180913
fi
echo "Choose TeX with the 1st(+2nd) character"
read -p 'p=platex, u=uplatex, l=latex, x=xelatex, pd=pdflatex, lu=lualatex:' tex
if [ ${tex} = "p" ]; then
tex="platex"
cd doc/ketmanual
cp -p KeTCindyReferenceJ.pdf ${dist}
cp -p KeTCindyGuideJ.pdf ${dist}
cp -p KeTpicStyleJ.pdf ${dist}
fi
if [ ${tex} = "u" ]; then
tex="uplatex"
cd doc/ketmanual
cp -p KeTCindyReferenceJ.pdf ${dist}
cp -p KeTCindyGuideJ.pdf ${dist}
cp -p KeTpicStyleJ.pdf ${dist}
fi
if [ ${tex} = "l" ]; then
tex="latex"
cd doc/ketmanual
cp -p KeTCindyReferenceE.pdf ${dist}
cp -p KeTCindyGuideE.pdf ${dist}
cp -p KeTpicStyleE.pdf ${dist}
fi
if [ ${tex} = "x" ]; then
tex="xelatex"
cd ketmanual
cp -p KeTCindyReferenceE.pdf ${dist}
cp -p KeTCindyGuideE.pdf ${dist}
cp -p KeTpicStyleE.pdf ${dist}
fi
if [ ${tex} = "pd" ]; then
tex="pdflatex"
cd doc/ketmanual
cp -p KeTCindyReferenceE.pdf ${dist}
cp -p KeTCindyGuideE.pdf ${dist}
cp -p KeTpicStyleE.pdf ${dist}
fi
if [ ${tex} = "lu" ]; then
tex="lualatex"
cd doc/ketmanual
cp -p KeTCindyReferenceE.pdf ${dist}
cp -p KeTCindyGuideE.pdf ${dist}
cp -p KeTpicStyleE.pdf ${dist}
fi
dist=~ #180913
echo generating ${dist}/${changesetting}
echo // Re-setting PathT,PathR,Pathpdf,PathM,PathAd,Mackc >${dist}${changesetting}
echo "PathT=PathThead+\"${tex}\";" >>${dist}${changesetting}
read -p 'Choose pdfviewer from preview(p),skim(s): ' ans
if [ ${ans} = "s" ]; then
echo "Pathpdf=\"skim\";" >> ${dist}${changesetting}
else
echo "Pathpdf=\"preview\";" >> ${dist}${changesetting}
fi
# 190217from
find -f ${pathM}
if [ $? -gt 0 ]; then
echo "PathM=\"${pathMn}\";" >> ${dist}${changesetting}
fi
# 190217to
echo "Mackc=\"open\";" >>${dist}${changesetting}
sleep 1
exit 0
|