File: make-dist

package info (click to toggle)
dvdauthor 0.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,436 kB
  • sloc: ansic: 21,379; sh: 634; yacc: 460; lex: 199; makefile: 83
file content (30 lines) | stat: -rwxr-xr-x 895 bytes parent folder | download | duplicates (3)
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
#!/bin/bash
#+
# Create distribution source tarball from repository source tree.
#
# Execute this script with the working directory set to the top of
# the dvdauthor source tree, and it will create
# dvdauthor-$PACKAGE_VERSION.tar.gz in the parent directory.
#
# Created by Lawrence D'Oliveiro <ldo@geek-central.gen.nz>.
#-
dstdir=dvdauthor-tartmp
mkdir ../$dstdir/ || exit 1
cp -a ./ ../$dstdir/dvdauthor/
cd ../$dstdir/dvdauthor
./clean
rm -rf .git .gitignore
./bootstrap
(cd src; flex -s -B -Cem -odvdvml.c -Pdvdvm dvdvml.l)
(cd src; bison -o dvdvmy.c -d -p dvdvm dvdvmy.y)
(cd doc; docbook2man root.sgml)
rm -rf autom4te.cache src/.deps
eval $(grep PACKAGE_VERSION= configure)
rm doc/manpage.links doc/manpage.refs
rm doc/*.sgml doc/html.dsl
sed -i '/\.\/bootstrap/d' INSTALL
rm bootstrap make-dist clean
cd ..
tar czhvf ../dvdauthor-$PACKAGE_VERSION.tar.gz dvdauthor/
cd ..
rm -rf $dstdir/