Changeset 16d0182 for Makefile


Ignore:
Timestamp:
01/27/2024 09:42:07 PM (8 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, 12.1-rc1, 12.2, 12.2-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/update-glibc
Children:
b6dd23c7
Parents:
4ac089b5
git-author:
Pierre Labastie <pierre.labastie@…> (01/27/2024 03:58:34 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (01/27/2024 09:42:07 PM)
Message:

Makefile: remove "true" after tidy

If in a series of commands, and not the last, true has no effect
If in the last command, it is better to exit if there is a real

error in tidy, so use "
test $$? -le 1", but only when tidy is

the last in a series of commands

Part of a patch by Boian Berberov

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r4ac089b5 r16d0182  
    5454        $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \
    5555         tidy -config tidy.conf $$filename;           \
    56          true;                                        \
    5756         /bin/bash obfuscate.sh $$filename;           \
    5857         sed -e "s|text/html|application/xhtml+xml|g" \
     
    9998
    10099        @echo "Running Tidy..."
    101         $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
     100        $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || test $$? -le 1
    102101
    103102        @echo "Running obfuscate.sh..."
Note: See TracChangeset for help on using the changeset viewer.