[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/proprietary/workshop malgen
From: |
Ineiev |
Subject: |
www/proprietary/workshop malgen |
Date: |
Sat, 20 Nov 2021 03:23:41 -0500 (EST) |
CVSROOT: /web/www
Module name: www
Changes by: Ineiev <ineiev> 21/11/20 03:23:41
Modified files:
proprietary/workshop: malgen
Log message:
Report targets with empty names.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/proprietary/workshop/malgen?cvsroot=www&r1=1.12&r2=1.13
Patches:
Index: malgen
===================================================================
RCS file: /web/www/www/proprietary/workshop/malgen,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- malgen 15 Apr 2021 19:52:39 -0000 1.12
+++ malgen 20 Nov 2021 08:23:41 -0000 1.13
@@ -1,4 +1,4 @@
-#!/bin/bash
+#! /bin/bash
# malgen regenerates lists in malware pages from mal.rec.
@@ -7,7 +7,7 @@
# The script processes all pages when no argument is given.
-# Copyright (C) 2018, 2019 Free Software Foundation, Inc.
+# Copyright (C) 2018, 2019, 2020, 2021 Free Software Foundation, Inc.
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
@@ -144,13 +144,17 @@
echo "Regenerating '$f'"
# List all possible targets.
targets=$(awk 'BEGIN { RS = ""; FS="\nTargets: " }'"
- /^Page: ${f//./[.]}\n/"'{$1=""; print $0}' targets.rec)
+ /^Page: ${f//./[.]}\n/"'{$1=""; print $0}' targets.rec \
+ | sed 's,^ *,,;s, *$,,')
# Check that mal.rec only lists real targets.
wrong_targets=$(grep "Target:[ \t]*${f//./[.]}" mal.rec |
sed -e 's,^.*html[ \t]*,,' | sort | uniq |
while read t; do
if ! echo " $targets " | grep -q " $t " ; then
+ if test "x$t" = x; then
+ t='<empty target>'
+ fi
echo " * $f $t"
fi
done)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- www/proprietary/workshop malgen,
Ineiev <=