]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: rename .list auto-generated files to .am (#670)
authorAmos Jeffries <yadij@users.noreply.github.com>
Mon, 22 Jun 2020 09:54:09 +0000 (09:54 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 22 Jun 2020 13:01:01 +0000 (13:01 +0000)
The contents are automake script. Also this allows
the source format enforcement to correctly detect
that and enforce our automake code guidelines.

doc/manuals/Makefile.am
doc/manuals/language.am [moved from doc/manuals/language.list with 94% similarity]
errors/Makefile.am
errors/language.am [moved from errors/language.list with 97% similarity]
errors/template.am [moved from errors/template.list with 98% similarity]
icons/Makefile.am
icons/icon.am [moved from icons/icon.list with 98% similarity]
scripts/source-maintenance.sh
src/Makefile.am
src/tests/Stub.am [moved from src/tests/Stub.list with 100% similarity]

index 6da7e151dd402f7f45d14321b37a033de0826f99..d9f0eeff0fa05fbd1c24942c2391f786b48942c6 100644 (file)
@@ -9,7 +9,7 @@
 ## None of the .po or .pot are distributed for builds at this stage.
 ##
 
-include $(srcdir)/language.list
+include $(srcdir)/language.am
 
 EXTRA_DIST = \
-       language.list
+       language.am
similarity index 94%
rename from doc/manuals/language.list
rename to doc/manuals/language.am
index 041dd51f44b1437c22757aebb7ec354c276e2406..7670c88380cdf81c8faff95ef61767bdcf47f273 100644 (file)
@@ -6,7 +6,7 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-TRANSLATE_LANGUAGES= \
+TRANSLATE_LANGUAGES = \
     ar.lang \
     cs.lang \
     de.lang \
index 94d5aa5c30d9d34821909f5bfa5221461412b55b..cc70d8511677d2fee46cef58d89facae579d69ab 100644 (file)
@@ -13,15 +13,15 @@ DEFAULT_ERROR_DIR   = $(errordir)
 DEFAULT_STYLESHEET     = $(sysconfdir)/errorpage.css
 
 ## List of automated translations possible:
-include $(srcdir)/template.list
-include $(srcdir)/language.list
+include $(srcdir)/template.am
+include $(srcdir)/language.am
 
 CLEANFILES = $(TRANSLATE_LANGUAGES) translate-warn
 EXTRA_DIST = \
        $(ERROR_TEMPLATES) \
        templates/error-details.txt \
-       language.list \
-       template.list \
+       language.am \
+       template.am \
        aliases alias-link.sh alias-upgrade errorpage.css TRANSLATORS COPYRIGHT
 
 all: all-am
similarity index 97%
rename from errors/language.list
rename to errors/language.am
index 72da5a1546f1eddaaa7dd1a0d6570c4d2013b423..12b1b2b3b43f0c25f027e2051528e26e648eefbd 100644 (file)
@@ -6,7 +6,7 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-TRANSLATE_LANGUAGES= \
+TRANSLATE_LANGUAGES = \
     af.lang \
     ar.lang \
     az.lang \
similarity index 98%
rename from errors/template.list
rename to errors/template.am
index 7ed690dedec14277616a4c1882a62f02b1f65374..6c12781e6f454dac3d4b9638813f8d941296a536 100644 (file)
@@ -6,7 +6,7 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-ERROR_TEMPLATES= \
+ERROR_TEMPLATES = \
     templates/ERR_ACCESS_DENIED \
     templates/ERR_ACL_TIME_QUOTA_EXCEEDED \
     templates/ERR_AGENT_CONFIGURE \
index 8d0f86e49eba44bbabbb9a7f9f03e0ed2779b99a..e3366f8e5f260c32e9dd2e2c2e2dc278512f094d 100644 (file)
@@ -5,12 +5,15 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-include $(top_srcdir)/icons/icon.list
+include $(top_srcdir)/icons/icon.am
 
 icondir = $(datadir)/icons/silk
 icon_DATA = $(ICONS)
-EXTRA_DIST = $(ICONS) icon.list SN.png
-DISTCLEANFILES = 
+EXTRA_DIST = \
+       $(ICONS) \
+       icon.am \
+       SN.png
+DISTCLEANFILES =
 
 install-data-local: SN.png install-iconDATA
        $(INSTALL_DATA) $(srcdir)/SN.png "$(DESTDIR)$(datadir)/icons/"
similarity index 98%
rename from icons/icon.list
rename to icons/icon.am
index 62c755272907691511ef598aca355a2dd6bec211..a1109bc6bd9d45a06e80dc2f9b9c836edd45f1e9 100644 (file)
@@ -6,7 +6,7 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-ICONS= \
+ICONS = \
     silk/application.png \
     silk/arrow_up.png \
     silk/bomb.png \
@@ -56,4 +56,4 @@ ICONS= \
     silk/plugin.png \
     silk/script_gear.png \
     silk/script_palette.png \
-    silk/script.png 
+    silk/script.png
index 9102dd2010dc9ef8045ceef8e577ae6bcfafc8f9..47e25f892fb0eabdfb3732c32c2a68a99f63a500 100755 (executable)
@@ -271,14 +271,13 @@ for FILENAME in `git ls-files`; do
                applyPluginsTo ${FILENAME} scripts/format-makefile-am.pl || return
        ;;
 
-    ChangeLog|CREDITS|CONTRIBUTORS|COPYING|*.list|*.png|*.po|*.pot|rfcs/|*.txt|test-suite/squidconf/empty|.bzrignore)
+    ChangeLog|CREDITS|CONTRIBUTORS|COPYING|*.png|*.po|*.pot|rfcs/|*.txt|test-suite/squidconf/empty|.bzrignore)
         # we do not enforce copyright blurbs in:
         #
         #  Squid Project contributor attribution file
         #  third-party copyright attribution file
         #  images,
         #  translation PO/POT
-        #  auto-generated .list files,
         #  license documentation files
         #  (imported) plain-text documentation files and ChangeLogs
         #  VCS internal files
@@ -322,65 +321,31 @@ echo ""
 ) >lib/profiler/list
 mv lib/profiler/list lib/profiler/xprof_type.h
 
+printAmFile ()
+{
+    sed -e 's%\ \*%##%; s%/\*%##%; s%##/%##%' < scripts/boilerplate.h
+    echo -n "$1 ="
+    git ls-files $2$3 | sed -e s%$2%%g | sort -u | while read f; do
+        echo " \\"
+        echo -n "    ${f}"
+    done
+    echo ""
+}
+
 # Build icons install include from current icons available
-(
-sed -e 's%\ \*%##%' -e 's%/\*%##%' -e 's%##/%##%' <scripts/boilerplate.h
-echo -n "ICONS="
-for f in `ls -1 icons/silk/* | sort -u`
-do
-       echo " \\"
-       echo -n "    ${f}"
-done
-echo " "
-)| sed s%icons/%%g >icons/icon.list
+printAmFile ICONS "icons/" "silk/*" > icons/icon.am
 
 # Build templates install include from current templates available
-(
-sed -e 's%\ \*%##%' -e 's%/\*%##%' -e 's%##/%##%' <scripts/boilerplate.h
-echo -n "ERROR_TEMPLATES="
-for f in `ls -1 errors/templates/ERR_* | sort -u`
-do
-       echo " \\"
-       echo -n "    ${f}"
-done
-echo " "
-)| sed s%errors/%%g >errors/template.list
+printAmFile ERROR_TEMPLATES "errors/" "templates/ERR_*" > errors/template.am
 
 # Build errors translation install include from current .PO available
-(
-sed -e 's%\ \*%##%' -e 's%/\*%##%' -e 's%##/%##%' <scripts/boilerplate.h
-echo -n "TRANSLATE_LANGUAGES="
-for f in `ls -1 errors/*.po | sort -u`
-do
-       echo " \\"
-       echo -n "    ${f}"
-done
-echo " "
-)| sed s%errors/%%g | sed s%\.po%\.lang%g >errors/language.list
+printAmFile TRANSLATE_LANGUAGES "errors/" "*.po" | sed 's%\.po%\.lang%g' > errors/language.am
 
 # Build manuals translation install include from current .PO available
-(
-sed -e 's%\ \*%##%' -e 's%/\*%##%' -e 's%##/%##%' <scripts/boilerplate.h
-echo -n "TRANSLATE_LANGUAGES="
-for f in `ls -1 doc/manuals/*.po | sort -u`
-do
-       echo " \\"
-       echo -n "    ${f}"
-done
-echo " "
-)| sed s%doc/manuals/%%g | sed s%\.po%\.lang%g >doc/manuals/language.list
+printAmFile TRANSLATE_LANGUAGES "doc/manuals/" "*.po" | sed 's%\.po%\.lang%g' > doc/manuals/language.am
 
 # Build STUB framework include from current stub_* available
-(
-sed -e 's%\ \*%##%' -e 's%/\*%##%' -e 's%##/%##%' <scripts/boilerplate.h
-echo -n "STUB_SOURCE= tests/STUB.h"
-for f in `ls -1 src/tests/stub_*.cc | sort -u`
-do
-       echo " \\"
-       echo -n "       ${f}"
-done
-echo " "
-)| sed s%src/%%g >src/tests/Stub.list
+printAmFile STUB_SOURCE "src/" "tests/stub_*.cc" > src/tests/Stub.am
 
 # Build the GPERF generated content
 make -C src/http gperf-files
index 5caacaf1f5ddd2fee334a103ed8a72267581ec3b..72e5611d7ac18030d8f0a1471b4649d2fddffc4d 100644 (file)
@@ -710,7 +710,7 @@ LDADD = \
        $(COMPAT_LIB) \
        $(XTRA_LIBS)
 
-include $(srcdir)/tests/Stub.list
+include $(srcdir)/tests/Stub.am
 
 EXTRA_DIST = \
        cf_gen_defines \
similarity index 100%
rename from src/tests/Stub.list
rename to src/tests/Stub.am