Commit 657cbfab authored by Joost van Baal-Ilić's avatar Joost van Baal-Ilić

create needed symlinks, perform needed cd, handle more errors

parent fbc0feae
......@@ -66,10 +66,13 @@ else
exit 1
fi
echo "Preparing build of '$DEBFILE' in '$BUILDDIR'..."
if ! test -L $ORIGFILE
then
rm -f $ORIGFILE
ln -s $TARFILE $ORIGFILE
fi
# FIXME ORIGFILE?
ln -s $TARFILE publicfile_0.52.orig.tar.gz
echo "Preparing build of '$DEBFILE' in '$BUILDDIR'..."
# unpack, patch and build
dpkg-source -x publicfile*.dsc
......@@ -79,13 +82,20 @@ else
## zcat ../$DIFFFILE | patch -p1 --quiet
## chmod a+x debian/rules
echo "Building $DEBFILE (if you won't get a message $DEBFILE is"
cd publicfile-?.??/
echo "Building $DEBFILE in `pwd` (if you won't get a message $DEBFILE is"
echo "ready, inspect the build log in $BUILDDIR/build.log to see"
echo "what went wrong)..."
dpkg-buildpackage -rfakeroot -b -uc >$BUILDDIR/build.log 2>&1
# clean up build dir
cp ../publicfile_$DEBVERSION*.deb $DIFFDIR
if ! cp ../publicfile_$DEBVERSION*.deb $DIFFDIR
then
echo "Error copying ../publicfile_$DEBVERSION*.deb to $DIFFDIR."
echo "Inspect `pwd` and $DIFFDIR to see what went wrong."
exit 1
fi
echo " ---------------"
echo "| $DIFFDIR/$DEBFILE ready, build log in $BUILDDIR/build.log."
......
......@@ -5,6 +5,7 @@
TARFILE=publicfile-0.52.tar.gz
TARURL=http://cr.yp.to/publicfile/$TARFILE
ORIGFILE=publicfile_0.52.orig.tar.gz
DSCFILE=publicfile_0.52-7.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