--- App-Staticperl/staticperl.sh 2010/12/10 02:35:54 1.12 +++ App-Staticperl/staticperl.sh 2010/12/10 20:29:17 1.14 @@ -4,13 +4,11 @@ # configuration to fill in STATICPERL=~/.staticperl -CPAN=http://mirror.netcologne.de/cpan/ # which mirror to use +CPAN=http://mirror.netcologne.de/cpan # which mirror to use EMAIL="read the documentation " -MKBUNDLE="$STATICPERL/mkbundle" # perl build variables -PERL_PREFIX="$STATICPERL/perl" # where the perl gets installed PERL_VERSION=5.12.2 # 5.8.9 is also a good choice PERL_CONFIGURE="" # additional Configure arguments PERL_CPPFLAGS="-DPERL_DISABLE_PMC -DPERL_ARENA_SIZE=65536 -D_GNU_SOURCE -DNDEBUG -USITELIB_EXP -USITEARCHEXP -UARCHLIB_EXP" @@ -54,13 +52,20 @@ postinstall() { : ; } # now source user config, if any -[ -r /etc/staticperlrc ] && . /etc/staticperlrc -[ -r ~/.staticperlrc ] && . ~/.staticperlrc -[ -r "$STATICPERL/rc" ] && . "$STATICPERL/rc" +if [ "$STATICPERLRC" ]; then + . "$STATICPERLRC" +else + [ -r /etc/staticperlrc ] && . /etc/staticperlrc + [ -r ~/.staticperlrc ] && . ~/.staticperlrc + [ -r "$STATICPERL/rc" ] && . "$STATICPERL/rc" +fi ############################################################################# # support +MKBUNDLE="${MKBUNDLE:=$STATICPERL/mkbundle}" +PERL_PREFIX="${PERL_PREFIX:=$STATICPERL/perl}" # where the perl gets installed + unset PERL5OPT PERL5LIB PERLLIB PERL_UNICODE PERLIO_DEBUG export LC_ALL=C # just to be on the safe side @@ -109,7 +114,7 @@ distclean() { verblock <