Debian Codegraph @

make-dist

raw
1 #!/bin/bash
2 #+
3 # Create distribution source tarball from repository source tree.
4 #
5 # Execute this script with the working directory set to the top of
6 # the dvdauthor source tree, and it will create
7 # dvdauthor-$PACKAGE_VERSION.tar.gz in the parent directory.
8 #
9 # Created by Lawrence D'Oliveiro <[email protected]>.
10 #-
11 dstdir=dvdauthor-tartmp
12 mkdir ../$dstdir/ || exit 1
13 cp -a ./ ../$dstdir/dvdauthor/
14 cd ../$dstdir/dvdauthor
15 ./clean
16 rm -rf .git .gitignore
17 ./bootstrap
18 (cd src; flex -s -B -Cem -odvdvml.c -Pdvdvm dvdvml.l)
19 (cd src; bison -o dvdvmy.c -d -p dvdvm dvdvmy.y)
20 (cd doc; docbook2man root.sgml)
21 rm -rf autom4te.cache src/.deps
22 eval $(grep PACKAGE_VERSION= configure)
23 rm doc/manpage.links doc/manpage.refs
24 rm doc/*.sgml doc/html.dsl
25 sed -i '/\.\/bootstrap/d' INSTALL
26 rm bootstrap make-dist clean
27 cd ..
28 tar czhvf ../dvdauthor-$PACKAGE_VERSION.tar.gz dvdauthor/
29 cd ..
30 rm -rf $dstdir/