]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Makefile/git scripts: Add comments to keep owned file lists in sync
authorteor <teor@torproject.org>
Mon, 25 Nov 2019 23:20:57 +0000 (09:20 +1000)
committerteor <teor@torproject.org>
Thu, 19 Dec 2019 23:35:18 +0000 (09:35 +1000)
Makefile.am
scripts/coccinelle/check_cocci_parse.sh
scripts/git/pre-commit.git-hook
scripts/git/pre-push.git-hook

index 2dd3a7aa3f97a3a269245693a688fb3cf8845d3c..811694f0b641728f6084f91998370401f23d3322 100644 (file)
@@ -389,6 +389,10 @@ coverage-html-full: all
        genhtml --branch-coverage -o "$(HTML_COVER_DIR)" "$(HTML_COVER_DIR)/lcov.info"
 
 # For scripts: avoid src/ext and src/trunnel.
+# Keep these lists consistent:
+#   - OWNED_TOR_C_FILES in Makefile.am
+#   - CHECK_FILES in pre-commit.git-hook and pre-push.git-hook
+#   - try_parse in check_cocci_parse.sh
 OWNED_TOR_C_FILES=\
                $(top_srcdir)/src/lib/*/*.[ch] \
                $(top_srcdir)/src/core/*/*.[ch] \
index aebfac70f23c6dce01a047a04c207517b4890999..aaa586c0933191fcb93a36ceb53bc3841b0243b2 100755 (executable)
@@ -73,6 +73,10 @@ if test $# -ge 1 ; then
 else
   cd "$top" || exit 1
   # This is the layout in 0.3.5
+  # Keep these lists consistent:
+  #   - OWNED_TOR_C_FILES in Makefile.am
+  #   - CHECK_FILES in pre-commit.git-hook and pre-push.git-hook
+  #   - try_parse in check_cocci_parse.sh
   "$try_parse" \
     src/lib/*/*.[ch] \
     src/core/*/*.[ch] \
index 95d566b17d0950111c9cce274b4ad7a9fb7f17f6..d5a75f2794a5cb48a6077c02004a42929e52e748 100755 (executable)
@@ -19,6 +19,10 @@ if [ $# -eq 0 ]; then
     # Use the appropriate owned tor source list to filter the changed files
     if [ -d src/lib ]; then
         # This is the layout in 0.3.5
+        # Keep these lists consistent:
+        #   - OWNED_TOR_C_FILES in Makefile.am
+        #   - CHECK_FILES in pre-commit.git-hook and pre-push.git-hook
+        #   - try_parse in check_cocci_parse.sh
         CHECK_FILES="$($CHECK_FILTER \
                            src/lib/*/*.[ch] \
                            src/core/*/*.[ch] \
index 6a85e951a898bead0ad7b9053731968d72846716..8b5efb0a9d2e4a49d125a98205cabdf14fd4581e 100755 (executable)
@@ -65,6 +65,10 @@ do
             # files
             if [ -d src/lib ]; then
                 # This is the layout in 0.3.5
+                # Keep these lists consistent:
+                #   - OWNED_TOR_C_FILES in Makefile.am
+                #   - CHECK_FILES in pre-commit.git-hook and pre-push.git-hook
+                #   - try_parse in check_cocci_parse.sh
                 CHECK_FILES="$($CHECK_FILTER \
                                    src/lib/*/*.[ch] \
                                    src/core/*/*.[ch] \
@@ -81,7 +85,7 @@ do
                                    src/or/*/*.[ch] \
                                    src/test/*.[ch] \
                                    src/test/*/*.[ch] \
-                                   src/tools/*.[ch]
+                                   src/tools/*.[ch] \
                               )"
             fi