summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-08-11 18:37:35 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:20 -0300
commit12120791bcf966a0de12fa9d3320db1a26ce4de0 (patch)
tree605b33645be895463bca1da1f058b5e8f184b230 /hints
parent217378ee9ab075a3711ed1f0c2a8074be691a71a (diff)
downloadperl-12120791bcf966a0de12fa9d3320db1a26ce4de0.tar.gz
hints/linux-androideabi.sh: use $cat instead of plain cat
Diffstat (limited to 'hints')
-rw-r--r--hints/linux-android.sh30
1 files changed, 15 insertions, 15 deletions
diff --git a/hints/linux-android.sh b/hints/linux-android.sh
index 66df178647..018d4083a0 100644
--- a/hints/linux-android.sh
+++ b/hints/linux-android.sh
@@ -40,14 +40,14 @@ d_getservent_r='undef'
# getusershell setusershell endusershell
# This script UU/archname.cbu will get 'called-back' by Configure.
-cat > UU/archname.cbu <<'EOCBU'
+$cat > UU/archname.cbu <<'EOCBU'
# egrep pattern to detect a stub warning on Android.
# Right now we're checking for:
# Android 2.x: FIX ME! implement FUNC
# Android 4.x: FUNC is not implemented on Android
android_stub='FIX|Android'
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <netdb.h>
int main() { (void) getnetbyname("foo"); return(0); }
EOM
@@ -57,7 +57,7 @@ if test "X$android_warn" != X; then
d_getnbyname="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <netdb.h>
int main() { (void) getnetbyaddr((uint32_t)1, AF_INET); return(0); }
EOM
@@ -67,7 +67,7 @@ if test "X$android_warn" != X; then
d_getnbyaddr="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <stdio.h>
#include <mntent.h>
#include <unistd.h>
@@ -79,7 +79,7 @@ if test "X$android_warn" != X; then
d_getmntent="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <netdb.h>
int main() { (void) getprotobyname("foo"); return(0); }
EOM
@@ -89,7 +89,7 @@ if test "X$android_warn" != X; then
d_getpbyname="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <netdb.h>
int main() { (void) getprotobynumber(1); return(0); }
EOM
@@ -99,7 +99,7 @@ if test "X$android_warn" != X; then
d_getpbynumber="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <sys/types.h>
#include <pwd.h>
int main() { endpwent(); return(0); }
@@ -110,7 +110,7 @@ if test "X$android_warn" != X; then
d_endpwent="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <unistd.h>
int main() { (void) ttyname(STDIN_FILENO); return(0); }
EOM
@@ -143,7 +143,7 @@ run=$run-$targetrun
to=$to-$targetto
from=$from-$targetfrom
-cat >$run <<EOF
+$cat >$run <<EOF
#!/bin/sh
doexit="echo \\\$? >$targetdir/output.status"
env=''
@@ -180,9 +180,9 @@ $from output.stdout
$from output.stderr
$from output.status
-result=\`cat output.stdout\`
-result_err=\`cat output.stderr\`
-result_status=\`cat output.status\`
+result=\`$cat output.stdout\`
+result_err=\`$cat output.stderr\`
+result_status=\`$cat output.status\`
rm output.stdout output.stderr output.status
# We get back Ok\r\n on android for some reason, grrr:
@@ -201,13 +201,13 @@ exit \$result_status
EOF
chmod a+rx $run
-cat >$targetmkdir <<EOF
+$cat >$targetmkdir <<EOF
#!/bin/sh
adb -s $targethost shell "mkdir -p \$@"
EOF
chmod a+rx $targetmkdir
-cat >$to <<EOF
+$cat >$to <<EOF
#!/bin/sh
for f in \$@
do
@@ -224,7 +224,7 @@ exit 0
EOF
chmod a+rx $to
-cat >$from <<EOF
+$cat >$from <<EOF
#!/bin/sh
for f in \$@
do