If an old port is resurrected to work with current version code, its files can be relocated to the appropriate sys or win folder as required. In the meantime, the burden of upkeep can be avoided for the stuff in the outdated folder for now.
24 lines
799 B
Sed
24 lines
799 B
Sed
: loop
|
|
/\\$/N
|
|
/\\$/b loop
|
|
# for each line, append any continuation lines before trying to classify it
|
|
/^ / {
|
|
# if it starts with a tab, it's meant for the shell, and we should think
|
|
# about reversing the slashes
|
|
s;cd ../util;cd ..\\util;
|
|
s;cd ../src;cd ..\\src;
|
|
/librarian/ s;dat/options;dat\\options;
|
|
/$(MAKE)/b
|
|
/$(CC)/b
|
|
s;/;\\;g
|
|
}
|
|
# unfortunately, we do not want to reverse *all* the slashes, as even the
|
|
# Atari make and gcc like forward ones, and it's messy to avoid the ones in
|
|
# sed addresses
|
|
# so, flip the first one in e.g.
|
|
# @( cd ../util ; $(MAKE) ../include/onames.h )
|
|
# flip the librarian-related ones in dat/options
|
|
# ignore other lines related to make and gcc
|
|
# and flip any slashes left over, which include a number of UNIX-only things
|
|
# that we didn't need to do but don't hurt
|