Updates to lyx-build script.

This commit is contained in:
Richard Heck 2012-11-03 22:10:40 -04:00
parent 1bd1fe7121
commit d49a4e5c5e

View File

@ -18,7 +18,7 @@ MAKEOPTS="-j4";
# Determine LyX version # Determine LyX version
cd $SRCDIR/ cd $SRCDIR/
VERSION=$(head configure.ac | grep AC_INIT | perl -e 'while (<>) {m/(\d\.\d+\.\d+)/; print $1;}'); VERSION=$(head configure.ac | grep AC_INIT | perl -e 'while (<>) {m/AC_INIT\(LyX,([^,]+)/; print $1;}');
echo "This is version $VERSION."; echo "This is version $VERSION.";
echo -n "Ready to build source packages..."; echo -n "Ready to build source packages...";
@ -86,16 +86,18 @@ if [ ! -d "$BASE/lyx-patch/" ]; then
mkdir "$BASE/lyx-patch/" || exit 1; mkdir "$BASE/lyx-patch/" || exit 1;
fi fi
if [ ! -d 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 "Will try to download from LyX site....";
read; read;
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;
if [ ! -f lyx-$LAST.tar.gz ]; then if [ ! -f lyx-$LAST.tar.gz ]; then
echo "Still unable to find directory for last version $LAST."; echo "Still unable to find directory for last version $LAST.";
exit 1; exit 1;
fi fi
popd;
fi fi
echo -n "Ready to make patch against $LAST..."; echo -n "Ready to make patch against $LAST...";
@ -131,7 +133,9 @@ if [ -f $PATCH.gz.sig ]; then
fi fi
gpg -b $PATCH.gz gpg -b $PATCH.gz
xz -zc $PATCH > $PATCH.xz xz -zc $PATCH > $PATCH.xz
rm $PATCH.xz.sig; if [ -f $PATCH.xz.sig ]; then
rm $PATCH.xz.sig;
fi
gpg -b $PATCH.xz gpg -b $PATCH.xz
echo -n "Patch and signatures created..."; echo -n "Patch and signatures created...";