Add scripts/update_lib.sh

This commit is contained in:
Grégory Soutadé 2022-06-12 15:00:38 +02:00
parent 5e018ddbd8
commit 201ec69b11
2 changed files with 24 additions and 0 deletions

View File

@ -45,6 +45,9 @@ lib:
mkdir lib
./scripts/setup.sh
update_lib:
./scripts/update_lib.sh
obj:
mkdir obj

21
scripts/update_lib.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
if [ ! -d lib/pugixml -o ! -d lib/updfparser ] ; then
echo "Some libraries are missing"
echo "You must run this script at the top of libgourou working direcotry."
echo "./lib/setup.sh must be called first (make all)"
exit 1
fi
# Pugixml
pushd lib/pugixml
git pull origin latest
popd
# Base64
# Nothing to do
# uPDFParser
pushd lib/updfparser
git pull origin master
make clean all BUILD_STATIC=1 BUILD_SHARED=0