Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- cd ~/code/snapshots/xu4/src
- svn update
- #x86_64
- export CC=gcc
- export CXX=g++
- export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
- export CFLAGS=
- export LDFLAGS=
- export CXXFLAGS=$CFLAGS
- export CPPFLAGS=$CXXFLAGS
- export ACLOCAL_FLAGS=
- export PKG_CONFIG_PATH=
- export SPECIFIC_ARCH=
- export SYSROOT=/Developer/SDKs/MacOSX10.6.sdk
- make -f makefile.osx clean && make -f makefile.osx clean-local
- make -f makefile.osx
- strip u4
- cp -p u4 u4-x86_64
- #i386
- export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
- export CC=/usr/bin/gcc-4.0
- export CXX=/usr/bin/g++-4.0
- export CFLAGS=
- export CXXFLAGS=$CFLAGS
- export CPPFLAGS=$CXXFLAGS
- export LDFLAGS=
- export PKG_CONFIG_PATH=
- export SPECIFIC_ARCH='-arch i386'
- export SYSROOT='/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4'
- make -f makefile.osx clean
- make -f makefile.osx
- strip u4
- cp -p u4 u4-i386
- #ppc
- export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
- export CC=/usr/bin/gcc-4.0
- export CXX=/usr/bin/g++-4.0
- export CFLAGS=
- export CXXFLAGS=$CFLAGS
- export CPPFLAGS=$CXXFLAGS
- export LDFLAGS=
- export PKG_CONFIG_PATH=
- export SPECIFIC_ARCH='-arch ppc'
- export SYSROOT='/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4'
- make -f makefile.osx clean
- make -f makefile.osx
- strip u4
- cp -p u4 u4-ppc
- lipo -create -arch x86_64 u4-x86_64 -arch i386 u4-i386 -arch ppc u4-ppc -output u4
- make -f makefile.osx osxdmg
- # copy the disk image to the snapshots storage path with date and time stamp
- # to be able to easily trace back regressions
- cp -p xu4-MacOSX.dmg ~/Snapshots/xu4/`date +%y-%m-%d-%H%M`xu4-MacOSX.dmg
- # move the disk image to the snapshots storage - this will be overwritten each
- # time you make a snapshot
- mv xu4-MacOSX.dmg ~/Snapshots/xu4/
- # if you have uploaded your public key to SF you can automatically upload the
- # snapshot to the download page
- scp -p -i ~/.ssh/id_dsa ~/Snapshots/xu4/xu4-MacOSX.dmg dominus,xu4@web.sourceforge.net:web/download/xu4-MacOSX.dmg
- make -f makefile.osx clean && make -f makefile.osx clean-local
Add Comment
Please, Sign In to add comment