Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -e
  4.  
  5. function test_compile {
  6.  
  7. echo ------------------------------------
  8. echo ------------------------------------
  9. echo Compiling with $1
  10. echo ------------------------------------
  11.  
  12. sudo update-alternatives --set gcc /usr/bin/gcc-$1
  13.  
  14. cd build/
  15. #cmake ..
  16. # Release RelWithDebInfo MinSizeRel Debug
  17. cmake -DWITH_DOC=ON -DBUILD_DOXY=ON -DCMAKE_BUILD_TYPE=Debug ..
  18. #cmake -DCMAKE_VERBOSE_MAKEFILE=ON ..
  19. make
  20. sudo make install
  21. cp lib/pgrouting--2.4.0.sig ../tools/curr-sig/
  22. make doc
  23. make doxy
  24. cd ..
  25.  
  26. #tools/testers/algorithm-tester.pl -alg dijkstra -debug1
  27. #tools/testers/algorithm-tester.pl -alg contraction
  28. #tools/testers/algorithm-tester.pl -alg pickDeliver
  29. #tools/testers/algorithm-tester.pl -alg trsp
  30. #tools/testers/algorithm-tester.pl
  31.  
  32. #cd build
  33. #make doc
  34. #cd ..
  35.  
  36. dropdb --if-exists ___pgr___test___
  37. createdb ___pgr___test___
  38. #sh ./tools/testers/pg_prove_tests.sh vicky
  39. dropdb ___pgr___test___
  40.  
  41. }
  42.  
  43. #test_compile 4.4
  44. #rm -rf build/*
  45. test_compile 5
  46. #rm -rf build/*
  47. #test_compile 4.9
  48. #rm -rf build/*
  49. #test_compile 4.6
  50. #sudo rm -f /usr/lib/postgresql/9.3/lib/libpgrouting-2.4.so
  51. #sudo rm -f /usr/share/postgresql/9.3/extension/pgrouting*2.4.0*
  52. #rm -rf build/*
  53. #test_compile 4.8
  54.  
  55. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement