From 94956d391a1d10bb7a4b152d7291f65375eb4024 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 31 Jan 2014 09:37:38 -0500 Subject: [PATCH] Update build script. (cherry picked from commit ef0fc5732f31d23de2cfe099c59174b5d20eb271) --- development/tools/lyx-build | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/development/tools/lyx-build b/development/tools/lyx-build index c86698fa9f..27b72d5b6b 100755 --- a/development/tools/lyx-build +++ b/development/tools/lyx-build @@ -88,16 +88,22 @@ fi if [ ! -d $BASE/lyx-patch/lyx-$LAST ]; then 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; - pushd $BASE/lyx-patch/; - wget ftp://ftp.lyx.org/pub/lyx/stable/${FIRST}x/lyx-$LAST.tar.gz; - tar -zxvf lyx-$LAST.tar.gz; - if [ ! -f lyx-$LAST.tar.gz ]; then - echo "Still unable to find directory for last version $LAST."; - exit 1; + + if [ ! -d $BASE/lyx-patch/lyx-$LAST ]; then + echo "Will try to download from LyX site...."; + pushd $BASE/lyx-patch/; + wget ftp://ftp.lyx.org/pub/lyx/stable/${FIRST}x/lyx-$LAST.tar.gz; + tar -zxvf lyx-$LAST.tar.gz; + if [ ! -f lyx-$LAST.tar.gz ]; then + echo "Still unable to find directory for last version $LAST."; + exit 1; + fi + popd; fi - popd; fi echo -n "Ready to make patch against $LAST..."; @@ -126,7 +132,7 @@ read $EDITOR patch-preamble; PATCH="patch-$VERSION"; -cat patch-preamble patch >$PATCH; +cat patch-preamble $BASE/lyx-export/ANNOUNCE patch >$PATCH; gzip -c $PATCH > $PATCH.gz if [ -f $PATCH.gz.sig ]; then rm $PATCH.gz.sig; -- 2.39.5