summaryrefslogtreecommitdiff
path: root/bin/filter-build-logs
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-29 21:23:52 +0100
committerErich Eckner <git@eckner.net>2017-10-29 21:23:52 +0100
commitd048bf03113ba9ea4ccd6ebe067264b233b79184 (patch)
tree2ee37f518c00a512384013c8a0d0a7ec463f6910 /bin/filter-build-logs
parent108bd61d398261a9c8259247eccde8ae6c3ab459 (diff)
downloadbuilder-d048bf03113ba9ea4ccd6ebe067264b233b79184.tar.xz
bin/filter-build-logs: add page about text-rel-packages
Diffstat (limited to 'bin/filter-build-logs')
-rwxr-xr-xbin/filter-build-logs20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/filter-build-logs b/bin/filter-build-logs
index c139f9b..05b534a 100755
--- a/bin/filter-build-logs
+++ b/bin/filter-build-logs
@@ -58,3 +58,23 @@
'</html>'
} > \
"${webserver_directory}/namcap-outputs.html"
+
+{
+ printf '%s\n' \
+ '<html>' \
+ '<head>' \
+ '<title>packages with text relocations</title>' \
+ '</head>' \
+ '<body>'
+ find "${webserver_directory}/build-logs/success" -name '*-namcap.log.gz' \
+ -exec zgrep -q '^[+*].*\sELF file (.*) has text relocations\.$' '{}' \; \
+ -printf '%f\n' | \
+ sort | \
+ sed '
+ s|-namcap\.log\.gz$|<br>|
+ '
+ printf '%s\n' \
+ '</body>' \
+ '</html>'
+} > \
+ "${webserver_directory}/text-relocations-packages.html"