Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
728 B

BEGIN {
FS="\t"
printf "test:\n"
nmaket = "nmake TEST=ON"
myclean = "$(MYCLEAN)"
myroot= "$(MYROOT)"
mytst = "$(MYTST)"
}
{
if (NR > 2 && $3 != "" && $4 ~ /[Yy]/ && $0 !~ /^;/)
{
split ( $3, arr, "\\" )
if ( arr["4"] != "" )
{
homeDir = arr["3"]"\\"arr["4"]
if ( $5 != "" && $5 != "." && $5 != "copy" )
printf "\tcd %s\n\t%s %s %s\n\tcd ..\%s\n\n", homeDir, nmaket, myclean, mytst, myroot }
else
{
homeDir = arr["3"]
if ( $5 != "" && $5 != "." && $5 != "copy" )
printf "\tcd %s\n\t%s %s %s\n\tcd %s\n\n", homeDir, nmaket, myclean, mytst, myroot
}
}
}