About dialog box shows "Custom Version"
[MacVim.git] / src / MacVim / make-snapshot.sh
blob45789d5ca6201385aa170015c48f8af36e297084
1 #!/bin/sh
3 export MACOSX_DEPLOYMENT_TARGET=10.4
5 # Increment build number
6 /Developer/usr/bin/agvtool next-version -all > /dev/null
8 # Get current build number
9 BUILDNUM=`/Developer/usr/bin/agvtool what-version -terse`
10 DEST=~/Desktop/MacVim-snapshot-$BUILDNUM
12 echo '****************************************************'
13 echo " BUILDING SNAPSHOT $BUILDNUM"
14 echo '****************************************************'
15 echo ''
17 # Build Vim binary
18 echo 'BUILDING VIM BINARY'
19 echo ' running configure...'
20 cd .. && ./configure --enable-gui=macvim --with-mac-arch=both \
21 --with-features=huge --enable-pythoninterp \
22 --enable-cscope --enable-rubyinterp \
23 --with-compiledby="Bjorn Winckler <bjorn.winckler@gmail.com>" > /dev/null
25 echo ' cleaning...'
26 make clean > /dev/null
27 echo ' calling make...'
28 make > /dev/null
29 echo ' done'
31 # Build MacVim.app
32 echo 'BUILDING MacVim.app'
33 cd MacVim
34 echo ' cleaning...'
35 xcodebuild -configuration Universal clean > /dev/null
36 echo ' calling xcodebuild...'
37 xcodebuild -configuration Universal > /dev/null
38 echo ' done'
40 # Create archive of build/Universal/MacVim.app
41 echo 'CREATING SNAPSHOT ARCHIVE'
42 echo ' copying MacVim.app and supporting files...'
43 mkdir $DEST
44 cp -pR build/Universal/MacVim.app $DEST/
45 cp -p mvim $DEST/
46 cp -p README-snapshot.txt $DEST/
47 echo ' creating archive....'
48 cd $DEST && cd ..
49 tar cjf MacVim-snapshot-$BUILDNUM.tbz MacVim-snapshot-$BUILDNUM
50 echo ' done'
52 echo 'ALL DONE'
53 echo 'Now update the Appcast, commit and tag, then post on vim_mac.'
54 # Update app-cast
56 # Commit & tag
57 # git-commit -a -m "$BUILDNUM"
58 # git-tag -a -F tagfile $BUILDNUM
60 # Post on vim_mac