dominus

dom

Mar 1st, 2011
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. cd ~/code/snapshots/xu4/src
  3. svn update
  4.  
  5. #x86_64
  6. export CC=gcc
  7. export CXX=g++
  8. export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
  9. export CFLAGS=
  10. export LDFLAGS=
  11. export CXXFLAGS=$CFLAGS
  12. export CPPFLAGS=$CXXFLAGS
  13. export ACLOCAL_FLAGS=
  14. export PKG_CONFIG_PATH=
  15. export SPECIFIC_ARCH=
  16. export SYSROOT=/Developer/SDKs/MacOSX10.6.sdk
  17. make -f makefile.osx clean && make -f makefile.osx clean-local
  18. make -f makefile.osx
  19. strip u4
  20. cp -p u4 u4-x86_64
  21.  
  22. #i386
  23. export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
  24. export CC=/usr/bin/gcc-4.0
  25. export CXX=/usr/bin/g++-4.0
  26. export CFLAGS=
  27. export CXXFLAGS=$CFLAGS
  28. export CPPFLAGS=$CXXFLAGS
  29. export LDFLAGS=
  30. export PKG_CONFIG_PATH=
  31. export SPECIFIC_ARCH='-arch i386'
  32. export SYSROOT='/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4'
  33. make -f makefile.osx clean
  34. make -f makefile.osx
  35. strip u4
  36. cp -p u4 u4-i386
  37.  
  38. #ppc
  39. export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
  40. export CC=/usr/bin/gcc-4.0
  41. export CXX=/usr/bin/g++-4.0
  42. export CFLAGS=
  43. export CXXFLAGS=$CFLAGS
  44. export CPPFLAGS=$CXXFLAGS
  45. export LDFLAGS=
  46. export PKG_CONFIG_PATH=
  47. export SPECIFIC_ARCH='-arch ppc'
  48. export SYSROOT='/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4'
  49. make -f makefile.osx clean
  50. make -f makefile.osx
  51. strip u4
  52. cp -p u4 u4-ppc
  53. lipo -create -arch x86_64 u4-x86_64 -arch i386 u4-i386 -arch ppc u4-ppc -output u4
  54. make -f makefile.osx osxdmg
  55. # copy the disk image to the snapshots storage path with date and time stamp
  56. # to be able to easily trace back regressions
  57. cp -p xu4-MacOSX.dmg ~/Snapshots/xu4/`date +%y-%m-%d-%H%M`xu4-MacOSX.dmg
  58. # move the disk image to the snapshots storage - this will be overwritten each
  59. # time you make a snapshot
  60. mv xu4-MacOSX.dmg ~/Snapshots/xu4/
  61. # if you have uploaded your public key to SF you can automatically upload the
  62. # snapshot to the download page
  63. scp -p -i ~/.ssh/id_dsa ~/Snapshots/xu4/xu4-MacOSX.dmg dominus,xu4@web.sourceforge.net:web/download/xu4-MacOSX.dmg
  64. make -f makefile.osx clean && make -f makefile.osx clean-local
Add Comment
Please, Sign In to add comment