export PATH variable

This commit is contained in:
Wolfram Schneider 1996-11-04 23:57:40 +00:00
parent f2cebac5c9
commit f078c9c9bc

View File

@ -1,5 +1,11 @@
# $Id: awkedit,v 1.1.1.1 1996/08/29 19:42:59 peter Exp $
# $Id: ndcedit.awk,v 1.1 1996/08/29 21:46:46 peter Exp $
NR == 3 {
print "#"
print "# This file is generated automatically, do not edit it here!"
print "# Please change src/usr.sbin/ndc/ndcedit.awk instead"
print "#"
print ""
print "# If there is a global system configuration file, suck it in."
print "if [ -f /etc/sysconfig ]; then"
print "\t. /etc/sysconfig"
@ -18,7 +24,12 @@ NR == 3 {
printf "\t%s\n", $0
printf "\t\tfi\n"
} else {
gsub(":/usr/ucb:", ":", $0);
if (/PATH=/) {
gsub(":/usr/ucb:", ":", $0);
if (!/export/) {
$0=$0"\nexport PATH";
}
}
print;
}
}