patch-scripts_build_qcad_sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. $OpenBSD: patch-scripts_build_qcad_sh,v 1.1 2007/01/09 16:30:38 steven Exp $
  2. --- scripts/build_qcad.sh.orig Tue Nov 22 12:27:33 2005
  3. +++ scripts/build_qcad.sh Sat Jan 6 22:13:03 2007
  4. @@ -41,6 +41,11 @@ then
  5. export MAKE=gmake
  6. echo "Platform is FreeBSD"
  7. platform=freebsd
  8. +elif [ `uname` == "OpenBSD" ]
  9. +then
  10. + export MAKE=${MAKE}
  11. + echo "Platform is OpenBSD"
  12. + platform=openbsd
  13. else
  14. export MAKE=make
  15. echo "Platform is Linux"
  16. @@ -53,7 +58,7 @@ fi
  17. if [ -z $QTDIR ]
  18. then
  19. echo "QTDIR not set. Aborting.."
  20. - exit
  21. + exit 1;
  22. fi
  23. modules="qcadlib qcadcmd qcadactions qcadguiqt"
  24. @@ -164,7 +169,7 @@ cd ..
  25. if [ ! -f fparser/lib/libfparser.a ]
  26. then
  27. echo "Building libfparser.a failed"
  28. - exit;
  29. + exit 1;
  30. fi
  31. echo "-------- Building dxflib --------"
  32. @@ -179,7 +184,7 @@ cd ..
  33. if [ ! -f dxflib/lib/libdxf.a ]
  34. then
  35. echo "Building libdxf.a failed"
  36. - exit;
  37. + exit 1;
  38. fi
  39. @@ -221,7 +226,7 @@ do
  40. if [ ! -f $p/lib/*.a ]
  41. then
  42. echo "Building $p failed"
  43. - exit;
  44. + exit 1;
  45. fi
  46. fi
  47. done
  48. @@ -249,6 +254,7 @@ then
  49. echo "-------- Building Translations --------"
  50. cd scripts
  51. sh ./release_translations.sh
  52. + cd ..
  53. fi
  54. if [ "x$platform" == "xosx" ]
  55. @@ -256,13 +262,13 @@ then
  56. if [ ! -d qcad/$target.app ]
  57. then
  58. echo "Building qcad binary failed"
  59. - exit;
  60. + exit 1;
  61. fi
  62. else
  63. if [ ! -f qcad/$target ]
  64. then
  65. echo "Building qcad binary failed"
  66. - exit;
  67. + exit 1;
  68. fi
  69. fi