blob: 5c7b97bb4f9f38c11f642f2e2d3aa024253dcb93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
$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
|