Skip to content

Commit ac85a25

Browse files
committed
Remove sed to replace 1 by linux ; Add -undef option to cpp
Reported-by: Ivan Zakharyaschev <imz@altlinux.org>
1 parent 496488b commit ac85a25

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

notes/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ include /usr/local/share/herodotos/Makefile.inc
1414
all:: /usr/share/pyshared/psycopg2/__init__.py
1515

1616
$(CONF): $(CONF).base
17-
cpp -P -D$(HOST) $^ | sed "s|/1 |/linux|" > $@
17+
cpp -undef -P -D$(HOST) $^ > $@

rec-faults/1st-collect/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include /usr/local/share/herodotos/Makefile.inc
1515
.PHONY:: pack
1616

1717
$(CONF): $(CONF).base
18-
cpp -P -D$(HOST) $^ | sed "s|/1 |/linux|" > $@
18+
cpp -undef -P -D$(HOST) $^ > $@
1919

2020
pack:
2121
tar cjvf ../$(DIR)_$(CONF:%.hc=%)_data.tbz2 -C .. --exclude-vcs $(DIR)

rec-faults/2nd-find-faults/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include /usr/local/share/herodotos/Makefile.inc
1515
.PHONY:: pack
1616

1717
$(CONF): $(CONF).base
18-
cpp -P -D$(HOST) $^ | sed "s|/1 |/linux|" > $@
18+
cpp -undef -P -D$(HOST) $^ > $@
1919

2020
pack:
2121
tar cjvf ../$(DIR)_$(CONF:%.hc=%)_data.tbz2 -C .. --exclude-vcs $(DIR)

0 commit comments

Comments
 (0)