Commit 28cd58e3 authored by Joost van Baal-Ilić's avatar Joost van Baal-Ilić

build-publicfile: more robust

parent e35ad3ea
......@@ -10,6 +10,8 @@ publicfile-installer (0.11)
n
OK, you can run sudo dpkg -i /publicfile_0.52-7*.deb later.
TEST THIS FIXME
* Makefile: bump version.
* Makefile: no longer symlink but copy GNU General Public License Version 3.
* Makefile, build-publicfile, publicfile-installer.1: no longer ship
......
......@@ -54,27 +54,19 @@ else
# create build dir, copy sources to build dir
BUILDDIR=`mktemp -d` || exit 1
cd $BUILDDIR
cp $TARDIR/$TARFILE .
if test -d "$DIFFDIR"
if test -f "$TARDIR/$TARFILE" -a -f "$DIFFDIR/$DIFFFILE" -a -f "$DIFFDIR/$DSCFILE"
then
if test -f "$DIFFDIR/$DIFFFILE" -a -f "$DIFFDIR/$DSCFILE"
then
cp $DIFFDIR/$DIFFFILE .
cp $DIFFDIR/$DSCFILE .
else
echo "File '$DIFFFILE' and/or '$DSCFILE' not found in directory '$DIFFDIR'."
echo "Please run get-publicfile to fetch sources."
exit 1
fi
cp $TARDIR/$TARFILE .
cp $DIFFDIR/$DIFFFILE .
cp $DIFFDIR/$DSCFILE .
else
echo "File '$DIFFFILE' and/or '$DSCFILE' not found in directory '$DIFFDIR'."
TODO FIXME DOE IETS ZINVOLS HIER
echo "File '$DIFFFILE' and/or '$DSCFILE' not found in directory '$DIFFDIR'; and/or file '$TARFILE' not found in directory '$TARDIR'."
echo "Please run get-publicfile to fetch sources."
exit 1
fi
echo "Preparing build of $DEBFILE in $BUILDDIR..."
echo "Preparing build of '$DEBFILE' in '$BUILDDIR'..."
# unpack, patch and build
dpkg-source -x publicfile*.dsc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment