-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qa_notice.sh
28 lines (22 loc) · 838 Bytes
/
qa_notice.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
cd /mnt/Downloads/portage-build-log
rm -f qa_notice.html
echo "<table style='background-color:#FFFF00'>" >> qa_notice.html
echo "<tr>" >> qa_notice.html
echo "<th>QA Notice</th>" >> qa_notice.html
echo "</tr>" >> qa_notice.html
echo "<tr><td>" >> qa_notice.html
files1=($(grep -rl '</span> QA Notice' *))
for f in "${files1[@]}"
do
# info=$(echo "${f}" | awk -F_ '{print $1}')
info=$(echo "${f}" | rev | cut -f1 -d_ --complement | rev)
echo "${info}_emerge-info.log.html redir qa_notice.html"
echo "<a href=\"${info}_emerge-info.log.html\">${info}_emerge-info.log.html</a>" >> qa_notice.html
echo "<br/>" >> qa_notice.html
echo "${f} redir qa_notice.html"
echo "<a href=\"${f}\">${f}</a>" >> qa_notice.html
echo "<br/>" >> qa_notice.html
done
echo "</td></tr>" >> qa_notice.html
echo "</table>" >> qa_notice.html