diff --git a/src/MacVim/README-snapshot.txt b/src/MacVim/README-snapshot.txt new file mode 100644 index 0000000000..6957df4fa5 --- /dev/null +++ b/src/MacVim/README-snapshot.txt @@ -0,0 +1,7 @@ +This archive contains a snapshot of 'MacVim.app' and the shell script +'mvim'. + +For usage instructions, please start MacVim and type ":h macvim" +(without the quotes). + +MacVim requires a PPC or Intel Mac running Mac OS X 10.4 or 10.5. diff --git a/src/MacVim/make-snapshot.sh b/src/MacVim/make-snapshot.sh new file mode 100755 index 0000000000..1827e90e7f --- /dev/null +++ b/src/MacVim/make-snapshot.sh @@ -0,0 +1,53 @@ +#!/bin/sh + +# Increment build number +/Developer/Tools/agvtool next-version -all + +# Get current build number +BUILDNUM=`/Developer/Tools/agvtool what-version -terse` +DEST=~/Desktop/MacVim-snapshot-$BUILDNUM + +# Build Vim binary +echo 'BUILDING VIM BINARY' +echo ' running configure...' +cd .. && ./configure --enable-gui=macvim --with-mac-arch=both \ + --with-features=huge --enable-pythoninterp --enable-tclinterp \ + --enable-cscope \ + --with-compiledby="Bjorn Winckler " > /dev/null + +echo ' cleaning...' +make clean > /dev/null +echo ' calling make...' +make > /dev/null +echo ' done' + +# Build MacVim.app +echo 'BUILDING MacVim.app' +cd MacVim +echo ' cleaning...' +xcodebuild -configuration Universal clean > /dev/null +echo ' calling xcodebuild...' +xcodebuild -configuration Universal > /dev/null +echo ' done' + +# Create archive of build/Universal/MacVim.app +echo 'CREATING SNAPSHOT ARCHIVE' +echo ' copying MacVim.app and supporting files...' +mkdir $DEST +cp -pR build/Universal/MacVim.app $DEST/ +cp -p mvim $DEST/ +cp -p README-snapshot.txt $DEST/ +echo ' creating archive....' +cd $DEST && cd .. +tar cjf MacVim-snapshot-$BUILDNUM.tbz MacVim-snapshot-$BUILDNUM +echo ' done' + +echo 'ALL DONE' +echo 'Now update the Appcast, commit and tag, then post on vim_mac.' +# Update app-cast + +# Commit & tag +# git-commit -a -m "$BUILDNUM" +# git-tag -a -F tagfile $BUILDNUM + +# Post on vim_mac