summaryrefslogtreecommitdiff
path: root/sysinfo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfo.sh')
-rwxr-xr-xsysinfo.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/sysinfo.sh b/sysinfo.sh
index 80b5d89..ab7149f 100755
--- a/sysinfo.sh
+++ b/sysinfo.sh
@@ -61,7 +61,7 @@ if ($* hello.c -o hello) >/dev/null 2>&1; then
fi
fi
-rm -f sysinfo.crm sysinfoc.c hello
+rm -f sysinfo.crm sysinfo.c hello
# this bombs out on Ultrix which expect "cut -d"
@@ -71,8 +71,6 @@ compdate=`date|cut -b1-55`
# let's hope that ctrl-c is not part of any string here
# this also will barf later if " is in any of the strings
-for i in sysinfo.c sysinfoc.c ; do
- sed -e "s%CCVERSION%$gccversion" -e "s%LIBCVERSION%$libcversion"\
- -e "s%SYSTEM%$compsystem" -e "s%DATE%$compdate"\
- ${i}.template > $i
-done
+sed -e "s%CCVERSION%$gccversion" -e "s%LIBCVERSION%$libcversion"\
+ -e "s%SYSTEM%$compsystem" -e "s%DATE%$compdate"\
+ sysinfo.c.template > sysinfo.c