No CF calls between fork() and exec()
[MacVim.git] / src / MacVim / make-snapshot.sh
blobd82220606582d0b6139bc034614b235d8fe1c977
1 #!/bin/sh
3 # Increment build number
4 /Developer/Tools/agvtool next-version -all > /dev/null
6 # Get current build number
7 BUILDNUM=`/Developer/Tools/agvtool what-version -terse`
8 DEST=~/Desktop/MacVim-snapshot-$BUILDNUM
10 echo '****************************************************'
11 echo " BUILDING SNAPSHOT $BUILDNUM"
12 echo '****************************************************'
13 echo ''
15 # Build Vim binary
16 echo 'BUILDING VIM BINARY'
17 echo ' running configure...'
18 cd .. && ./configure --enable-gui=macvim --with-mac-arch=both \
19 --with-features=huge --enable-pythoninterp --enable-tclinterp \
20 --enable-cscope \
21 --with-compiledby="Bjorn Winckler <bjorn.winckler@gmail.com>" > /dev/null
23 echo ' cleaning...'
24 make clean > /dev/null
25 echo ' calling make...'
26 make > /dev/null
27 echo ' done'
29 # Build MacVim.app
30 echo 'BUILDING MacVim.app'
31 cd MacVim
32 echo ' cleaning...'
33 xcodebuild -configuration Universal clean > /dev/null
34 echo ' calling xcodebuild...'
35 xcodebuild -configuration Universal > /dev/null
36 echo ' done'
38 # Create archive of build/Universal/MacVim.app
39 echo 'CREATING SNAPSHOT ARCHIVE'
40 echo ' copying MacVim.app and supporting files...'
41 mkdir $DEST
42 cp -pR build/Universal/MacVim.app $DEST/
43 cp -p mvim $DEST/
44 cp -p README-snapshot.txt $DEST/
45 echo ' creating archive....'
46 cd $DEST && cd ..
47 tar cjf MacVim-snapshot-$BUILDNUM.tbz MacVim-snapshot-$BUILDNUM
48 echo ' done'
50 echo 'ALL DONE'
51 echo 'Now update the Appcast, commit and tag, then post on vim_mac.'
52 # Update app-cast
54 # Commit & tag
55 # git-commit -a -m "$BUILDNUM"
56 # git-tag -a -F tagfile $BUILDNUM
58 # Post on vim_mac