File: mkhomepage

package info (click to toggle)
yacas 1.3.6-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 7,176 kB
  • ctags: 3,520
  • sloc: cpp: 13,960; java: 12,602; sh: 11,401; makefile: 552; perl: 517; ansic: 381
file content (60 lines) | stat: -rwxr-xr-x 1,182 bytes parent folder | download
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
#!/bin/sh

PREFIX=/usr/local

if [ -n "$1" ]; then
    PREFIX=$1
fi

# clean
rm -f yacas-*.tar.gz
make distclean

# Rebuild yacas and the documentation
./makemake
./configure CXXFLAGS="-O3" CFLAGS="-O3" --prefix=$PREFIX --enable-server --enable-pdf-doc
make
make # make a second time, for adding statically linked libraries
make install
cd JavaYacas
make -f makefile.yacas
cd ..

cd docs
make autocompleterarray.js
cd ..

make dist
make distcheck


# Copy all the files to a homepage directory
if [ -d homepage ] ; then : ; else  mkdir homepage ; fi; 
cd homepage

cp ../manmake/ref.funcs.js ../manmake/refprog.funcs.js .
cp ../manmake/*.html .
cp ../docs/yacaslogo.png .
tar -zcvf manual.html.tar.gz *
cp ../manmake/*.pdf .
tar -zcvf manual.pdf.tar.gz *.pdf

cp ../docs/*.gif ../docs/*.html ../docs/*.js ../docs/*.yart ../docs/*.css .
rm back-dark.gif
cp yacas.html index.html

cp ../JavaYacas/yacas.jar .
cp ../JavaYacas/hints.txt .

if [ -d backups ] ; then : ; else  mkdir backups ; fi; 
mv manual.html.tar.gz backups
mv manual.pdf.tar.gz backups
cd backups
mv ../../yacas-*.tar.gz .
cd ..
# chmod -R 755 *
chmod 664 yacas.jar
tar -zcf ../homepage.tgz *
cd ..
rm -rf homepage/