Windows2003-3790/inetcore/outlookexpress/wabw/build/wab/makeallt.awk
2020-09-30 16:53:55 +02:00

28 lines
728 B
Awk

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
}
}
}