diff options
Diffstat (limited to 'sysinfo.sh')
-rwxr-xr-x | sysinfo.sh | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 |