blob: 344cbb23816f8e187a72cfdf4f5b9acd9409c272 (
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
|
#!/bin/sh
#
# KETCindy starter script
#
BinaryName=Cinderella2
TemplateFile=template.cdy
if [ "$1" = "-c" ]
then
shift
cinderella="$1"
else
cinderella=`which $BinaryName 2>/dev/null`
fi
if [ -z "$cinderella" ]
then
echo "Cannot find $BinaryName!" >&2
exit 1
fi
if [ ! -x "$cinderella" ] ; then
echo "Program $cinderella is not executable!" >&2
exit 1
fi
# search for template.cdy
TempCdy=`kpsewhich -format=texmfscripts $TemplateFile`
if [ -z "$TempCdy" ]
then
echo "Cannot find $TemplateFile via kpsewhich, is ketpic installed?" >&2
exit 1
fi
exec "$cinderella" "$TempCdy"
|