# 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
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
d_getnbyaddr="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <stdio.h>
#include <mntent.h>
#include <unistd.h>
d_getmntent="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <netdb.h>
int main() { (void) getprotobyname("foo"); return(0); }
EOM
d_getpbyname="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <netdb.h>
int main() { (void) getprotobynumber(1); return(0); }
EOM
d_getpbynumber="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <sys/types.h>
#include <pwd.h>
int main() { endpwent(); return(0); }
d_endpwent="$undef"
fi
-cat > try.c << 'EOM'
+$cat > try.c << 'EOM'
#include <unistd.h>
int main() { (void) ttyname(STDIN_FILENO); return(0); }
EOM
to=$to-$targetto
from=$from-$targetfrom
-cat >$run <<EOF
+$cat >$run <<EOF
#!/bin/sh
doexit="echo \\\$? >$targetdir/output.status"
env=''
$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:
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
EOF
chmod a+rx $to
-cat >$from <<EOF
+$cat >$from <<EOF
#!/bin/sh
for f in \$@
do