]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: Move sort-includes.pl to scripts/maintenance/ (#599)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sun, 19 Apr 2020 02:06:34 +0000 (02:06 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 19 Apr 2020 17:42:08 +0000 (17:42 +0000)
We will no longer get `changed #include order` notices but will get
`changed: by maintenance/sort-includes.pl` notices, including for
whitespace-only changes.

scripts/maintenance/sort-includes.pl [moved from scripts/sort-includes.pl with 100% similarity]
scripts/source-maintenance.sh

index 872857ee77c98b05f23a781efd9310f9ccf9bdc7..4da788ee976bb6478932fa67e82d229a19366307 100755 (executable)
@@ -159,17 +159,6 @@ for FILENAME in `git ls-files`; do
                fi
        fi
 
-       ./scripts/sort-includes.pl ${FILENAME} >${FILENAME}.sorted
-       if test -e ${FILENAME} -a -e "${FILENAME}.sorted"; then
-               md51=`cat  ${FILENAME}| tr -d "\n \t\r" | $MD5`;
-               md52=`cat  ${FILENAME}.sorted| tr -d "\n \t\r" | $MD5`;
-
-               if test "$md51" != "$md52" ; then
-                       echo "NOTICE: File ${FILENAME} changed #include order"
-               fi
-               mv ${FILENAME}.sorted ${FILENAME}
-       fi
-
        #
        # REQUIRE squid.h first #include
        #