summaryrefslogtreecommitdiff
path: root/support/xtexshell/upd
blob: f168dbbb5f2d88003540b71ad131a95c9613224a (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
#!/bin/sh
#
# Do not run this script until you fully understand what it does...
#
name="XTeXShell-0.91"
echo "*** Generating TCL-Index..."
tclsh -f << EOF
auto_mkindex . xtexsh *.tcl
EOF
echo "*** Generating Help Index..."
cd help
update_help
cd ..
echo "*** Removing extra files..."
rm -r -f ./*~
rm -r -f help/*~
rm -r -f bitmaps/*~
rm -r -f bitmaps/*.log
rm -r -f bitmaps/*.aux
rm -r -f bitmaps/*.toc
rm -r -f bitmaps/*.dvi
rm -r -f bitmaps/*.bak
rm -r -f bitmaps/*.ps
rm -r -f bitmaps/tmp*
rm -r -f bitmaps/bitconv
rm -r -f DEADJOE
echo "*** Setup permissions..."
chmod -R a-wx *
chmod -R a+r  *
chmod  a+x xtexsh help bitmaps 
chmod  u+x upd help/convhelp help/update_help bitmaps/mkbitmaps testxtexsh
echo "*** Generating archive..."
cd ..
tar czf $name.tgz $name/*
cd $name
echo "*** Done"