]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Only include files really needed: skip non-mminimzed versions and LICENSE and fix...
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 17 Aug 2022 07:35:39 +0000 (09:35 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 17 Aug 2022 07:35:39 +0000 (09:35 +0200)
pdns/recursordist/Makefile.am
pdns/recursordist/incfiles

index 962b367fe50b3d362287277c6c96bf6c52229bdc..8be3d49b441766904bb6a1b062f509e13b9948cb 100644 (file)
@@ -41,7 +41,7 @@ BUILT_SOURCES=htmlfiles.h \
 CLEANFILES = htmlfiles.h \
        recursor.conf-dist
 
-htmlfiles.h: html/*
+htmlfiles.h: incfiles html/* html/js/*
        ./incfiles > $@
 
 SUBDIRS=ext
index a65909a53e814c6431836edb9ebef5b9350284a9..b0e67ec0f410c6469c1599a625516426a294e600 100755 (executable)
@@ -8,7 +8,10 @@ then
        DIR=$1/
 fi
 
-for a in $(find ${DIR}html -type f | grep -v \~ | sort)
+files=$(find ${DIR}html -type f \( -name '*.css' -or -name '*.html' -or -name '*.png' -or -name 'local-2022.js' -or -name '*min.js' \) | sort)
+
+echo // $files
+for a in $files
 do
        c=$(echo $a | sed s:${DIR}html/:: | tr "/.-" "___")
         echo "static const unsigned char g${c}Data[] = {"
@@ -17,7 +20,7 @@ do
 done
 
 echo "static const map<string,string> g_urlmap={"
-for a in $(find ${DIR}html -type f | grep -v \~ | sort)
+for a in $files
 do
        b=$(echo $a | sed s:${DIR}html/::g)
        c=$(echo $b | tr "/.-" "___")