Skip to content

Instantly share code, notes, and snippets.

@cvvergara
Last active May 19, 2017 08:34
Show Gist options
  • Save cvvergara/fbf30cf491c43e0014921636c7e823cb to your computer and use it in GitHub Desktop.
Save cvvergara/fbf30cf491c43e0014921636c7e823cb to your computer and use it in GitHub Desktop.
a script to do lots of stuff when developing pgrouting v2.4
#!/bin/bash
set -e
function test_compile {
echo ------------------------------------
echo ------------------------------------
echo Compiling with $1
echo ------------------------------------
sudo update-alternatives --set gcc /usr/bin/gcc-$1
cd build/
#cmake ..
# Release RelWithDebInfo MinSizeRel Debug
cmake -DWITH_DOC=ON -DBUILD_DOXY=ON -DCMAKE_BUILD_TYPE=Debug ..
#cmake -DCMAKE_VERBOSE_MAKEFILE=ON ..
make
sudo make install
cp lib/pgrouting--2.4.0.sig ../tools/curr-sig/
make doc
make doxy
cd ..
#tools/testers/algorithm-tester.pl -alg dijkstra -debug1
#tools/testers/algorithm-tester.pl -alg contraction
#tools/testers/algorithm-tester.pl -alg pickDeliver
#tools/testers/algorithm-tester.pl -alg trsp
#tools/testers/algorithm-tester.pl
#cd build
#make doc
#cd ..
dropdb --if-exists ___pgr___test___
createdb ___pgr___test___
#sh ./tools/testers/pg_prove_tests.sh vicky
dropdb ___pgr___test___
}
#test_compile 4.4
#rm -rf build/*
test_compile 5
#rm -rf build/*
#test_compile 4.9
#rm -rf build/*
#test_compile 4.6
#sudo rm -f /usr/lib/postgresql/9.3/lib/libpgrouting-2.4.so
#sudo rm -f /usr/share/postgresql/9.3/extension/pgrouting*2.4.0*
#rm -rf build/*
#test_compile 4.8
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment