Permalink
Browse files

add script to restore to a pristine source tree

  • Loading branch information...
1 parent 759565e commit 819a2202dd2d3ab6d76b23786ecb7fc97c763c23 Lawrence D'Oliveiro committed Apr 30, 2010
Showing with 14 additions and 1 deletion.
  1. +12 −0 clean
  2. +2 −1 make-dist
View
12 clean
@@ -0,0 +1,12 @@
+#!/bin/bash
+#+
+# Restore to a pristine source tree.
+#
+# Written by Lawrence D'Oliveiro <ldo@geek-central.gen.nz>.
+#-
+
+rm -f src/*.o doc/*.1 doc/manpage.{links,refs} config.log config.status
+rm -rf autom4te.cache autotools dvdauthor.spec src/.deps
+rm -f configure {,src/,doc/}Makefile{,.in} src/config.h src/config.h.in aclocal.m4
+rm -f src/stamp-h1 src/dvdvml.c src/dvdvmy.c src/dvdvmy.h
+rm -f src/{dvdauthor,spumux,dvdunauthor,spuunmux,mpeg2desc,dvddirdel}
View
@@ -12,6 +12,7 @@ dstdir=dvdauthor-tartmp
mkdir ../$dstdir/ || exit 1
cp -a ./ ../$dstdir/dvdauthor/
cd ../$dstdir/dvdauthor
+./clean
rm -rf .git
./bootstrap
(cd src; flex -s -B -Cem -odvdvml.c -Pdvdvm dvdvml.l)
@@ -22,7 +23,7 @@ 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
+rm bootstrap make-dist clean
cd ..
tar czhvf ../dvdauthor-$PACKAGE_VERSION.tar.gz dvdauthor/
cd ..

0 comments on commit 819a220

Please sign in to comment.