Guest User

Untitled

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