From 1efd3df215aa76275f902e197b38f8ff93800c73 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Tue, 24 Jun 2008 03:39:17 +0000 Subject: ubuntu released kernels git-svn-id: svn+ssh://svn.debian.org/svn/kernel-sec@1182 e094ebfe-e918-0410-adfb-c712417f3574 --- scripts/ubuntu-release | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/ubuntu-release b/scripts/ubuntu-release index cf436685..3079cb1e 100644 --- a/scripts/ubuntu-release +++ b/scripts/ubuntu-release @@ -1,7 +1,15 @@ #!/bin/bash -echo 'This is just a place holder for future scripts. View source for examples.' -exit 1 +DAPPER="$1" +FEISTY="$2" +GUTSY="$3" +HARDY="$4" -# Examples: -#../scripts/ubuntu-usn-desc $(egrep '^2.6.20-feisty-security: pending' CVE* | cut -d: -f1) -#perl -pi -e 's/^2.6.20-feisty-security: pending \(2\.6\.20-16\.30\)/2.6.20-feisty-security: released (2.6.20-16.31)/' CVE* +if [ -z "$DAPPER" ] || [ -z "$FEISTY" ] || [ -z "$GUTSY" ] || [ -z "$HARDY" ]; then + echo "Usage: $0 DAPPER FEISTY GUTSY HARDY" >&2 + exit 1 +fi + +perl -pi -e 's/^2.6.15-dapper-security: pending.*/2.6.15-dapper-security: released ('"$DAPPER"')/' CVE* +perl -pi -e 's/^2.6.20-feisty-security: pending.*/2.6.20-feisty-security: released ('"$FEISTY"')/' CVE* +perl -pi -e 's/^2.6.22-gutsy-security: pending.*/2.6.22-gutsy-security: released ('"$GUTSY"')/' CVE* +perl -pi -e 's/^2.6.24-hardy-security: pending.*/2.6.24-hardy-security: released ('"$HARDY"')/' CVE* -- cgit v1.2.3