Update build script.

This commit is contained in:
Richard Heck 2014-01-31 09:37:38 -05:00
parent 2831c728f3
commit ef0fc5732f

View File

@ -88,8 +88,13 @@ fi
if [ ! -d $BASE/lyx-patch/lyx-$LAST ]; then if [ ! -d $BASE/lyx-patch/lyx-$LAST ]; then
echo "Can't find directory for last version $LAST."; echo "Can't find directory for last version $LAST.";
echo "Will try to download from LyX site...."; echo "See if you can fix this in $BASE/lyx-patch/.";
echo "Try that, if you like, and then we'll continue.";
echo "We'll try to download from the LyX site if that does not work.";
read; read;
if [ ! -d $BASE/lyx-patch/lyx-$LAST ]; then
echo "Will try to download from LyX site....";
pushd $BASE/lyx-patch/; pushd $BASE/lyx-patch/;
wget ftp://ftp.lyx.org/pub/lyx/stable/${FIRST}x/lyx-$LAST.tar.gz; wget ftp://ftp.lyx.org/pub/lyx/stable/${FIRST}x/lyx-$LAST.tar.gz;
tar -zxvf lyx-$LAST.tar.gz; tar -zxvf lyx-$LAST.tar.gz;
@ -99,6 +104,7 @@ if [ ! -d $BASE/lyx-patch/lyx-$LAST ]; then
fi fi
popd; popd;
fi fi
fi
echo -n "Ready to make patch against $LAST..."; echo -n "Ready to make patch against $LAST...";
read read
@ -126,7 +132,7 @@ read
$EDITOR patch-preamble; $EDITOR patch-preamble;
PATCH="patch-$VERSION"; PATCH="patch-$VERSION";
cat patch-preamble patch >$PATCH; cat patch-preamble $BASE/lyx-export/ANNOUNCE patch >$PATCH;
gzip -c $PATCH > $PATCH.gz gzip -c $PATCH > $PATCH.gz
if [ -f $PATCH.gz.sig ]; then if [ -f $PATCH.gz.sig ]; then
rm $PATCH.gz.sig; rm $PATCH.gz.sig;