]> granicus.if.org Git - pdns/commitdiff
Sort included html files
authorChristian Hofstaedtler <zeha@debian.org>
Sun, 3 Jul 2016 08:20:06 +0000 (10:20 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 3 Jul 2016 20:41:02 +0000 (22:41 +0200)
For improved reproducibility.

pdns/dnsdistdist/incfiles
pdns/recursordist/incfiles

index b6c50d0810734573a5760d110d797e4d076273d3..da127415f6dac6661e48ba451864738471bd8c92 100755 (executable)
@@ -1,18 +1,21 @@
 #!/bin/sh
 
+export LC_ALL=C.UTF-8
+export LANG=C.UTF-8
+
 if [ -n "$1" ]
 then
        DIR=$1/
 fi
 
-for a in $(find ${DIR}html -type f | grep -v \~)
+for a in $(find ${DIR}html -type f | grep -v \~ | sort)
 do
        c=$(echo $a | sed s:${DIR}html/:: | tr "/.-" "___")
        echo "INCBIN(${c}, \"$a\");"
 done
 
 echo "map<string,string> g_urlmap={"
-for a in $(find ${DIR}html -type f | grep -v \~)
+for a in $(find ${DIR}html -type f | grep -v \~ | sort)
 do
        b=$(echo $a | sed s:${DIR}html/::g)
        c=$(echo $b | tr "/.-" "___")
index b6c50d0810734573a5760d110d797e4d076273d3..da127415f6dac6661e48ba451864738471bd8c92 100755 (executable)
@@ -1,18 +1,21 @@
 #!/bin/sh
 
+export LC_ALL=C.UTF-8
+export LANG=C.UTF-8
+
 if [ -n "$1" ]
 then
        DIR=$1/
 fi
 
-for a in $(find ${DIR}html -type f | grep -v \~)
+for a in $(find ${DIR}html -type f | grep -v \~ | sort)
 do
        c=$(echo $a | sed s:${DIR}html/:: | tr "/.-" "___")
        echo "INCBIN(${c}, \"$a\");"
 done
 
 echo "map<string,string> g_urlmap={"
-for a in $(find ${DIR}html -type f | grep -v \~)
+for a in $(find ${DIR}html -type f | grep -v \~ | sort)
 do
        b=$(echo $a | sed s:${DIR}html/::g)
        c=$(echo $b | tr "/.-" "___")