-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathmake-dist
executable file
·30 lines (30 loc) · 895 Bytes
/
make-dist
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/