Skip to content

Commit

Permalink
build: more robust lablgtk2 download
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrek committed Aug 17, 2024
1 parent b9a1237 commit a96930d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1269,12 +1269,14 @@ else
y* | Y*)

cd $PATCH_DIR
LABLGTK_DIST=lablgtk-"$REQUIRED_LABLGTK".tar.gz
rm -rf lablgtk-"$REQUIRED_LABLGTK"
if test ! -f lablgtk-"$REQUIRED_LABLGTK".tar.gz; then
if test ! -f "$LABLGTK_DIST"; then
echo Downloading ...
$WGET http://www.math.nagoya-u.ac.jp/~garrigue/soft/olabl/dist/lablgtk-"$REQUIRED_LABLGTK".tar.gz
$WGET -O "$LABLGTK_DIST".tmp http://www.math.nagoya-u.ac.jp/~garrigue/soft/olabl/dist/"$LABLGTK_DIST" && mv "$LABLGTK_DIST".tmp "$LABLGTK_DIST"
rm -f "$LABLGTK_DIST".tmp
fi
if test ! -f lablgtk-"$REQUIRED_LABLGTK".tar.gz; then exit 1; fi
if test ! -f "$LABLGTK_DIST"; then exit 1; fi

mkdir -p $BUILD_DIR
cd $BUILD_DIR
Expand Down

0 comments on commit a96930d

Please sign in to comment.