diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-01-02 14:09:33 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-01-02 14:24:00 -0600 |
commit | b443e4e43f4f04cf86344baa51a86c05c27ca0b0 (patch) | |
tree | 3cf707c4619d39fb2ae89a3706e44284b8216208 /bin | |
parent | db65d1ec07936f956e9caf18f838b5a696587551 (diff) | |
download | conf-b443e4e43f4f04cf86344baa51a86c05c27ca0b0.tar.gz conf-b443e4e43f4f04cf86344baa51a86c05c27ca0b0.zip |
script for building/testing perl
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/p | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +#!/bin/bash + +_configure () { + ./Configure -des -Dusedevel -DDEBUGGING -Dusethreads -Uversiononly -Accflags="-Wall -Wextra" -Doptimize="-g -O0 -ggdb3" +} + +_make () { + make -j9 +} + +_test () { + export TEST_JOBS=9 + if [ -n "$*" ]; then + make test_harness TEST_FILES="$*" + else + make test_harness + fi +} + +cmd=$1 +shift + +case $cmd in + configure) + _configure $@ + ;; + make) + _make $@ + ;; + test) + _test $@ + ;; + *) + echo "Usage: p <command> [args...]" 1>&2 + exit 1 + ;; +esac |