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