Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- git clean -dxf >/dev/null 2>&1
- # If you can use ccache, add -Dcc=ccache\ gcc -Dld=gcc to the Configure line
- sh ./Configure -Doptimize=-ggdb3 -Dusedevel -d -e or ./Configure -Dcc='ccache gcc' -Dld=gcc -Doptimize=-ggdb3 -Dusedevel -d -e > /dev/null 2>&1
- test -f config.sh || exit 125
- # Correct makefile for newer GNU gcc
- perl -ni -we 'print unless /<(?:built-in|command)/' makefile x2p/makefile
- # if you just need miniperl, replace test_prep with miniperl
- make -j4 miniperl > /dev/null 2>&1
- test -x ./miniperl || exit 125
- ./miniperl -e 'my $x = get_x(); my %x = %$x; sub get_x { %x=(1..1000); return \%x; }'
- ret=$?
- git clean -dxf >/dev/null 2>&1
- if [ $ret != 0 ]; then
- exit 0
- else
- exit 1
- fi
Add Comment
Please, Sign In to add comment