~ubuntu-branches/ubuntu/hardy/swi-prolog/hardy

« back to all changes in this revision

Viewing changes to packages/xpce/src/make-bin-tape.in

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2007-12-02 23:26:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071202232600-b7d3d1i4kzfqmipf
Tags: 5.6.47-1
* New upstream version (Closes: #295209, #308325, #425580)
* New maintainer (Closes: #422576)
* Bump Debhelper compatibility to 5
* debian/rules:
   * Update config.sub and config.guess from autotools-dev
       (Closes: #408076, #414181)
   * Desist from blindly ignoring "clean" target
* debian/control:
   * Use ${binary:Version} instead of ${Source-Version}
   * Add new Homepage: field
   * Add XS-Vcs-* fields
* Change ".menu" sections from
     "Apps/Programming" -> "Applications/Programming"
* Documentation:
   * Remove some SGML documentation now missing from upstream
   * Add Sicstus and SWI-Prolog v4.8 -related XPCE documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
arch=@ARCH@-@OS@
 
4
RTSUFFIX=@RTSUFFIX@
 
5
 
 
6
version=`cat VERSION`
 
7
outdir=/guest/xpce/$version
 
8
libout=$outdir/xpcelib.tgz
 
9
binout=$outdir/xpce-$arch.tgz
 
10
compress="gzip -9"
 
11
emulator="./bin/xpce$RTSUFFIX"
 
12
crt0=./bin/crt0.o
 
13
xpcelib=./bin/XPCE$RTSUFFIX.a
 
14
 
 
15
if [ ! -d $outdir ]; then
 
16
    mkdir $outdir
 
17
fi
 
18
 
 
19
for d in library boot include; do
 
20
    rm -f pl/$d
 
21
    (cd pl; ln -s ../../pl/$d .)
 
22
done
 
23
 
 
24
rm -f $emulator $crt0 $xpcelib
 
25
(cd bin; ln -s ../pl/src/`basename $emulator` .)
 
26
(cd bin; ln -s ../pl/src/`basename $crt0` .)
 
27
(cd bin; ln -s ../src/`basename $xpcelib` .)
 
28
 
 
29
chmod +x install
 
30
 
 
31
libdirs="./CXX ./bitmaps ./include ./man/reference ./pl ./postscript ./prolog"
 
32
 
 
33
rm -f xpce-$version
 
34
if [ ! "o$1" = "o-q" ]; then
 
35
  cp /dev/null libfiles
 
36
  echo -n "Collecting distribution files "
 
37
  for d in `find $libdirs -name CVS -type d -print`; do
 
38
      echo -n "."
 
39
      dir=`dirname $d`
 
40
      awk -F/ '{printf("%s/%s\n", "'$dir'", $2)}' $dir/CVS/Entries >> libfiles
 
41
  done
 
42
cat >> libfiles << EOF
 
43
./FAQ
 
44
./INFO
 
45
./Pce
 
46
./INSTALL
 
47
./README
 
48
./README.customise
 
49
./README.font
 
50
./README.linux
 
51
./VERSION
 
52
./install-sh
 
53
./licence/licence.tex
 
54
./man/xpce-client.1
 
55
./man/xpce.1
 
56
./prolog/lib/man/classification.obj
 
57
EOF
 
58
  echo "done"
 
59
fi
 
60
 
 
61
grep -v src/msw/ libfiles | \
 
62
        grep -v prolog/pwboot | \
 
63
        grep -v quintus/ | \
 
64
        sed "s@^\./@xpce-$version/@" > tapefiles.lib
 
65
 
 
66
cat > binfiles << EOF
 
67
$emulator
 
68
$crt0
 
69
$xpcelib
 
70
./bin/xpce-client
 
71
./install
 
72
EOF
 
73
 
 
74
sed "s@^\./@xpce-$version/@" binfiles > tapefiles.bin
 
75
 
 
76
cd ..
 
77
ln -s xpce xpce-$version
 
78
tar chvfT - xpce/tapefiles.lib | $compress > $libout
 
79
tar chvfT - xpce/tapefiles.bin | $compress > $binout
 
80
rm -f xpce-$version