source: gs3-extensions/android-ndk/trunk/src/PERL-CROSS-STAGE2.sh@ 26853

Last change on this file since 26853 was 26853, checked in by davidb, 11 years ago

Tweak to the config_h.SH file to control what is used by Android's perl for system()/backticks command. Unlike most Unix systems, on Android it would appear to need to be /system/bin/sh, not /bin/sh

  • Property svn:executable set to *
File size: 703 bytes
Line 
1#!/bin/bash
2
3if [ "x$PERLCROSS_HOME" = "x" ] ; then
4 source ./perl-devel.sh
5fi
6
7export HOME=$PERL_CROSS_HOME
8
9export PATH=$PERL_CROSS_HOME/hostperl-5.16.0/bin:$PATH
10
11
12if [ ! -d perldroid ] ; then
13 echo "Untarring Perldroid source"
14 tar xvzf perldroid-r298.tar.gz
15fi
16
17cd $PERL_CROSS_HOME/perldroid/libperl/perl-5.16.0/Cross \
18 && ./prepare_perl_from_svn.sh \
19 \
20 && cd $PERL_CROSS_HOME/perl-arm-5.16.0-14 \
21 && chmod u+w config_h.SH \
22 && sed 's@"$sh"@"/system/bin/sh"@g' config_h.SH > config_h.SH.new \
23 && /bin/mv config_h.SH.new config_h.SH \
24 \
25 && cd $PERL_CROSS_HOME/perl-arm-5.16.0-14/Cross/ \
26 && make -f Makefile.android perl \
27 && cd $PERL_CROSS_HOME
28
29echo "****"
30echo "* Done."
31echo "****"
Note: See TracBrowser for help on using the repository browser.