mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
$NetBSD: patch-ae,v 1.1 2000/08/04 08:50:17 jlam Exp $
|
|
|
|
--- pgms/report.sh.orig Sat May 13 15:31:52 1995
|
|
+++ pgms/report.sh Fri Aug 4 02:40:20 2000
|
|
@@ -18,11 +18,44 @@
|
|
##############################################################################
|
|
BINDIR=${BINDIR-pgms}
|
|
TARGET=${TARGET-results/log}
|
|
+HAVEPRINTF=false ; export HAVEPRINTF
|
|
+if expr "`type printf`" : '^printf is shell builtint$' >/dev/null 2>&1 ; then
|
|
+ HAVEPRINTF=true
|
|
+elif expr "`type printf`" : '.* is .*/printf$' >/dev/null 2>&1 ; then
|
|
+ HAVEPRINTF=true
|
|
+fi
|
|
+if $HAVEPRINT ; then
|
|
+ # use ``$echo'' if any of the other variables...
|
|
+ echo=print
|
|
+ nl='\n'
|
|
+ n=''
|
|
+ c='\c'
|
|
+elif $HAVEPRINTF ; then
|
|
+ # use ``$echo'' if any of the other variables...
|
|
+ echo=printf
|
|
+ nl='\n'
|
|
+ n=''
|
|
+ c='\c'
|
|
+else
|
|
+ echo=echo
|
|
+ (echo "hi there\c" ; echo " ") >echotmp
|
|
+ # Configure checks to make sure grep returns a status...
|
|
+ if grep c echotmp >/dev/null 2>&1 ; then
|
|
+ nl=''
|
|
+ n='-n'
|
|
+ c=''
|
|
+ else
|
|
+ nl='\n'
|
|
+ n=''
|
|
+ c='\c'
|
|
+ fi
|
|
+ rm -f echotmp
|
|
+fi
|
|
# RESULTS TARGET
|
|
#
|
|
if [ $# -lt 1 ]
|
|
then
|
|
- echo "Source File for target machine results: \c"
|
|
+ $echo $n "Source File for target machine results: $c"
|
|
read TARGET
|
|
else
|
|
TARGET=$1
|