]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
checkrootfiles: ignore arch folder and add x86_64,aarch64
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 29 Dec 2019 13:42:31 +0000 (13:42 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 29 Dec 2019 13:42:31 +0000 (13:42 +0000)
rust has arch depending rootfiles which make no sense to
replache the arch by machine.
Also added missing arches to check.

tools/checkrootfiles

index 74fab3e02310b6bce11bf37e8375f9bd02e7dea5..7b996d48054162baa46d173612482bb254f36e53 100755 (executable)
@@ -33,16 +33,30 @@ if [ "${?}" == "0" ]; then
        echo "Comment this and create it at initskript if needed !"
 fi
 
-grep -r "/i586" ./config/rootfiles/ --exclude gcc --exclude-dir oldcore >/dev/null 2>&1
+grep -r '/i586' ./config/rootfiles/ --exclude gcc --exclude-dir oldcore --exclude-dir i586 >/dev/null 2>&1
 if [ "${?}" == "0" ]; then
        echo "Error! '/i586' in rootfiles files found!"
-       grep -r "/i586" ./config/rootfiles/ --exclude gcc --exclude-dir oldcore
+       grep -r '/i586' ./config/rootfiles/ --exclude gcc --exclude-dir oldcore --exclude-dir i586
        echo "Replace by MACHINE !"
 fi
 
-grep -r "/armv5tel" ./config/rootfiles/ --exclude gcc --exclude-dir oldcore >/dev/null 2>&1
+grep -r '/x86_64' ./config/rootfiles/ --exclude gcc --exclude *linux* --exclude-dir oldcore --exclude-dir x86_64 >/dev/null 2>&1
+if [ "${?}" == "0" ]; then
+       echo "Error! '/x86_64' in rootfiles files found!"
+       grep -r '/x86_64' ./config/rootfiles/ --exclude gcc --exclude *linux* --exclude-dir oldcore --exclude-dir x86_64
+       echo "Replace by MACHINE !"
+fi
+
+grep -r '/armv5tel' ./config/rootfiles/ --exclude gcc --exclude-dir oldcore --exclude-dir armv5tel >/dev/null 2>&1
 if [ "${?}" == "0" ]; then
        echo "Error! '/armv5tel' in rootfiles files found!"
-       grep -r "/armv5tel" ./config/rootfiles/ --exclude gcc --exclude-dir oldcore
+       grep -r '/armv5tel' ./config/rootfiles/ --exclude gcc --exclude-dir oldcore --exclude-dir armv5tel
+       echo "Replace by MACHINE !"
+fi
+
+grep -r '/aarch64' ./config/rootfiles/ --exclude gcc --exclude-dir oldcore --exclude-dir aarch64 >/dev/null 2>&1
+if [ "${?}" == "0" ]; then
+       echo "Error! '/aarch64' in rootfiles files found!"
+       grep -r '/aarch64' ./config/rootfiles/ --exclude gcc --exclude-dir oldcore --exclude-dir aarch64
        echo "Replace by MACHINE !"
 fi