aboutsummaryrefslogtreecommitdiff
path: root/lib/libdvd/libdvdread/misc/relchk.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdvd/libdvdread/misc/relchk.sh.in')
-rwxr-xr-xlib/libdvd/libdvdread/misc/relchk.sh.in66
1 files changed, 66 insertions, 0 deletions
diff --git a/lib/libdvd/libdvdread/misc/relchk.sh.in b/lib/libdvd/libdvdread/misc/relchk.sh.in
new file mode 100755
index 0000000000..8251874692
--- /dev/null
+++ b/lib/libdvd/libdvdread/misc/relchk.sh.in
@@ -0,0 +1,66 @@
+#!/bin/sh
+##
+## A simple compare directory content utility.
+##
+
+topdir="`pwd`"
+distdir="@PACKAGE_NAME@-@PACKAGE_VERSION@"
+log="$topdir/dist-log"
+logerror="$topdir/dist-errors"
+
+getdir() {
+ if test -r .relignore; then
+ filelist=`ls | grep -Fxvf .relignore`
+ else
+ filelist=`ls`
+ fi
+
+ for file in $filelist; do
+
+ if test -d $file -a $file != "CVS" -a $file != $distdir; then
+ (cd $file && getdir) || (cd ..)
+ else
+ if test ! -d $file -a \
+ $file != $log -a \
+ $file != $logerror -a \
+ $file != "$distdir.tar.gz"; then
+
+ orifile=`pwd`/$file
+
+ distfile=$topdir/$distdir${orifile##*$topdir}
+
+ echo -e "check:\t$orifile\nand\t$distfile" >> $log
+
+ if test ! -e $distfile; then
+ missingfile=${orifile##$topdir}
+ echo "${missingfile#/} is missing in tarball" >> $logerror
+ fi
+
+ fi
+ fi
+
+ done
+}
+
+main() {
+ rm -f $log $logerror
+
+ make config.status && make dist && mv $distdir.tar.gz $distdir.tmp.tar.gz && \
+ cp config.status config.tmp.status && make clean && make distclean && \
+ mv $distdir.tmp.tar.gz $distdir.tar.gz && mv config.tmp.status config.status && \
+ tar -xzf $distdir.tar.gz
+
+ echo "Check is running, be patient..."
+ getdir
+
+ rm -rf $distdir
+ rm -f $distdir.tar.gz
+ ./config.status --recheck
+ ./config.status
+
+ echo " * Log is ${log##*/}"
+ echo " * Error log is ${logerror##*/}"
+
+}
+
+main