Created
May 13, 2011 10:38
-
-
Save tyru/970328 to your computer and use it in GitHub Desktop.
Vim build script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 <[email protected]>'" | |
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
script_dir=$(cd $(dirname $0) && pwd) | |
cd $(dirname $0)/.. | |
CFLAGS='-g -O0' $script_dir/build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
cd $(dirname $0)/.. | |
make distclean || rm src/auto/config.cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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