Skip to content

Instantly share code, notes, and snippets.

@tyru tyru/build
Created May 13, 2011

Embed
What would you like to do?
Vim build script
#!/bin/sh
set -e
cd $(dirname $0)/..
opts="--prefix=/usr/local"
opts="$opts --with-features=huge"
opts="$opts --enable-multibyte"
opts="$opts --with-compiledby='tyru <tyru.exe@gmail.com>'"
#opts="$opts --enable-perlinterp"
opts="$opts --enable-pythoninterp"
#opts="$opts --enable-rubyinterp"
#opts="$opts --enable-luainterp"
#opts="$opts --enable-gui=gtk2"
opts="$opts --enable-gui=auto"
#opts="$opts --with-x"
opts="$opts --enable-fontset"
opts="$opts --enable-fail-if-missing"
# Run parent directory's configure
[ -f ./configure ] || make configure
sh -c "./configure $opts" && make
#!/bin/sh
set -e
script_dir=$(cd $(dirname $0) && pwd)
cd $(dirname $0)/..
CFLAGS='-g -O0' $script_dir/build
#!/bin/sh
set -e
script_dir=$(cd $(dirname $0) && pwd)
cd $(dirname $0)/..
if [ "$1" = "-f" ]; then
echo
echo "### Removing previous configure cache ... ###"
echo
$script_dir/clean
fi
echo
echo "### Updating repository ... ###"
echo
$script_dir/update
echo
echo "### Running configure & make ... ###"
echo
$script_dir/build
echo
echo "### Running 'checkinstall' ... ###"
echo
$script_dir/install
#!/bin/sh
set -e
cd $(dirname $0)/..
make distclean || rm src/auto/config.cache
#!/bin/sh
set -e
cd $(dirname $0)/..
version=`hg tags | perl -nle 'print if $.==2 && s/^v(\d+)-(\d+)-(\d+).*/\1.\2.\3/'`
sudo checkinstall --fstrans=no --install -y --pkgversion 2:$version
#!/bin/sh
set -e
cd $(dirname $0)/..
hg pull
hg update -C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.