r4397 - people/horms/patch_notes/2.6-stable
Simon Horman
horms at costa.debian.org
Tue Oct 11 05:18:10 UTC 2005
Author: horms
Date: 2005-10-11 05:18:09 +0000 (Tue, 11 Oct 2005)
New Revision: 4397
Added:
people/horms/patch_notes/2.6-stable/gen_notes
Log:
template generator
Added: people/horms/patch_notes/2.6-stable/gen_notes
===================================================================
--- people/horms/patch_notes/2.6-stable/gen_notes 2005-10-11 05:16:54 UTC (rev 4396)
+++ people/horms/patch_notes/2.6-stable/gen_notes 2005-10-11 05:18:09 UTC (rev 4397)
@@ -0,0 +1,72 @@
+#!/bin/bash
+# gen_notes
+# Generate notes for a stable release
+#
+# Horms <horms at debian.org>
+# Licenced under the GNU GPL v2
+
+set -e
+
+
+GIT_BASE="/home/horms/work/debian-kernel/stable-queue"
+GIT_URL="http://www.kernel.org/git/?p=linux/kernel/git/chrisw/stable-queue.git;a=tree;f="
+
+DEBIAN_VERSIONS="2.6.13 2.6.12 2.6.8-sarge 2.6.8-sarge-security 2.4.27-sid/sarge 2.4.27-sarge-security"
+
+
+if [ $# -gt 1 ]; then
+ echo "Usage: $0 [VERSION]" 2>&1
+ echo " e.g. $0 2.6.13.4" 2>&1
+ echo " e.g. $0" 2>&1
+fi
+
+if [ $# -ne 1 ]; then
+ VERSION=$((cd /home/horms/work/debian-kernel/stable-queue/ && \
+ "ls" -d 2.6.*; ) | sort -nr | head -1) || exit 1
+ [ -z "$VERSION" ] && exit 1
+else
+ VERSION="$1"
+fi
+
+{
+
+echo "Version: $VERSION"
+echo "URL: ${GIT_URL}${VERSION}"
+echo
+
+for i in $(cat "$GIT_BASE/$VERSION/series"); do
+ SUBJECT=$(sed -ne 's/^Subject: //; T; s/^ *\[PATCH\] *//i; p; q' \
+ "$GIT_BASE/$VERSION/$i")
+ CAN=$(echo "$SUBJECT" | \
+ sed -n \
+ -e 's/.*\(CAN-[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]\).*/\1/' \
+ -e 'T; p; q')
+ if [ -n "$CAN" ]; then
+ DESC=$(echo "$SUBJECT" | \
+ sed -e "s/ *(*$CAN)*//; T" \
+ -e "s/\[\([^]]*\)\] */[SECURITY,\1] /; t" \
+ -e "s/^/[SECURITY] /";)
+ else
+ DESC="$SUBJECT"
+ fi
+
+
+ echo " * $DESC"
+ if [ -n "$CAN" ]; then
+ echo " See $CAN"
+ fi
+ echo " $i"
+ echo
+ echo -n " Security: "
+ if [ -n "$CAN" ]; then
+ echo "Yes; $CAN"
+ else
+ echo "pending examination: $CAN"
+ fi
+ for j in $DEBIAN_VERSIONS; do
+ echo " $j: pending examination"
+ done
+ echo
+done
+
+} > "$VERSION"
Property changes on: people/horms/patch_notes/2.6-stable/gen_notes
___________________________________________________________________
Name: svn:executable
+ *
More information about the Kernel-svn-changes
mailing list