Skip to content
4 changes: 2 additions & 2 deletions scripts/012-libxml2-2.7.8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# libxml2-2.7.8.sh by Naomi Peori ([email protected])

## Download the source code.
wget --continue http://xmlsoft.org/download/libxml2-2.7.8.tar.gz
wget --continue http://xmlsoft.org/sources/libxml2-2.7.8.tar.gz -O libxml2-2.7.8.tar.gz

## Download an up-to-date config.guess and config.sub
if [ ! -f config.guess ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
if [ ! -f config.sub ]; then wget --continue http://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi

## Unpack the source code.
rm -Rf libxml2-2.7.8 && tar xfvz libxml2-2.7.8.tar.gz && cd libxml2-2.7.8
rm -Rf libxml2-2.7.8 && mkdir libxml2-2.7.8 && tar --strip-components=1 -xvzf libxml2-2.7.8.tar.gz -C libxml2-2.7.8 && cd libxml2-2.7.8

## Replace config.guess and config.sub
cp ../config.guess ../config.sub .
Expand Down