File: make_tarball.sh

package info (click to toggle)
plplot 5.3.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 26,248 kB
  • ctags: 11,687
  • sloc: ansic: 86,045; xml: 17,249; sh: 12,400; tcl: 8,113; cpp: 6,824; perl: 4,383; python: 3,915; makefile: 2,899; java: 2,788; fortran: 290; sed: 5; awk: 1
file content (45 lines) | stat: -rwxr-xr-x 1,437 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
# Fix up a clean exported plplot tree in order to generate a release tarball.
# Must be executed from top directory of exported tree, typically a versioned
# directory such as plplot-5.2.0.
# Usage:
# If autotools installed in normal system locations:
# scripts/make_tarball.sh
# If, for example, autotools installed in /home/software/autotools/install 
# scripts/make_tarball.sh -I /home/software/autotools/install/share/libtool/libltdl

# Add in generated documentation from our website.
#cd doc
#wget -r -l 1 -L -nH --no-parent --cut-dirs=2 \
#http://plplot.sourceforge.net/resources/docbook-manual/
#tar zxf plplotdoc-html-0.4.3.tar.gz
#cd ..

# Fix permissions screwup(s) in freshly checked out CVS
# Nothing to do for the moment thanks to Rafael's efforts

# Prepare tree for configure; make; make install

./bootstrap.sh 

# Compensate for autoconf bug which invokes autoheader inappropriately on these
# files if they are out of date.
cd include
touch plConfig.h.in  plDevs.h.in
cd ..

# Perl-generate the tcl wrapper files.
cd bindings/tcl 
perl pltclgen
cd ../..

# Swig-generate both the single and double-precision python wrappers.
cd bindings/python
swig -python -o plplotcmodule_p_double.c -c++ -DPL_DOUBLE plplotcmodule.i
swig -python -o plplotcmodule_p_single.c -c++ plplotcmodule.i
cd ../..

# Swig-generate the java wrapper.
cd bindings/java
swig -java -package plplot.core -DPL_DOUBLE plplotjavac.i
cd ../..