Skip to content

Commit

Permalink
build: Don't use bash-ism in po4a_issue295.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
xry111 committed Feb 8, 2023
1 parent 8e2fc80 commit 38f81f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pdf: booksrc
rm -rf $$tmpdir

booksrc: $(MBOOK_FILES) $(ORIG_FILES) $(MLANG)/book/version.ent
[ ! -e $(MLANG)/fix.sh ] || (pushd $(MLANG)/book; sh ../fix.sh; popd)

$(MLANG)/book/tidy.conf: lfs-en/tidy.conf $(MLANG)/lang.mk
sed -e '/output-encoding:/s|latin1|$(M_ENCODING_ALT)|' $< > $@
Expand All @@ -85,7 +84,7 @@ $(MLANG)/book/git-version.sh: lfs-en/git-version.sh
sed '/git.status/,$$ d' $< > $@
chmod -v 755 $@

$(MXML_FILES) &: $(XML_FILES) $(PO_FILES) mkpo4acfg.py
$(MXML_FILES) &: $(XML_FILES) $(PO_FILES) mkpo4acfg.py po4a_issue295.sh
mkdir -pv $(POT_DIRS)
$(CMD_FIND_XML) | $(MKPO4ACFG) > po4a.cfg
po4a po4a.cfg
Expand Down
2 changes: 1 addition & 1 deletion po4a_issue295.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ sed -n "${sed_cmd}" -i \

# Looks stupid, but I don't know any better way.
for iter in 1 2 3; do
sed -n "${sed_cmd}" -i chapter08/{glibc,stripping}.xml
sed -n "${sed_cmd}" -i chapter08/glibc.xml chapter08/stripping.xml
done

0 comments on commit 38f81f8

Please sign in to comment.