OSDN Git Service

Initial Import
[nethackexpress/trunk.git] / sys / atari / unx2atar.sed
1 : loop
2 /\\$/N
3 /\\$/b loop
4 # for each line, append any continuation lines before trying to classify it
5 /^      / {
6 # if it starts with a tab, it's meant for the shell, and we should think
7 #  about reversing the slashes
8 s;cd ../util;cd ..\\util;
9 s;cd ../src;cd ..\\src;
10 /librarian/ s;dat/options;dat\\options;
11 /$(MAKE)/b
12 /$(CC)/b
13 s;/;\\;g
14 }
15 # unfortunately, we do not want to reverse *all* the slashes, as even the
16 #  Atari make and gcc like forward ones, and it's messy to avoid the ones in
17 #  sed addresses
18 # so, flip the first one in e.g.
19 #       @( cd ../util ; $(MAKE) ../include/onames.h )
20 # flip the librarian-related ones in dat/options
21 # ignore other lines related to make and gcc
22 # and flip any slashes left over, which include a number of UNIX-only things
23 #  that we didn't need to do but don't hurt