mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
lyx-build: check sig in case one really uses download instead of local tarball.
This commit is contained in:
parent
f6922b8c88
commit
bbe09eada1
@ -105,6 +105,13 @@ if [ ! -d "$BASE/lyx-patch/lyx-$LAST" ]; then
|
|||||||
echo "Will try to download from LyX site....";
|
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;
|
||||||
|
wget ftp://ftp.lyx.org/pub/lyx/stable/${FIRST}x/lyx-$LAST.tar.gz.sig
|
||||||
|
gpg -q --verify lyx-$LAST.tar.gz.sig
|
||||||
|
if ! [ $? == 0 ]; then
|
||||||
|
echo "Signature wrong!"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
rm lyx-$LAST.tar.gz.sig
|
||||||
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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user