From 6e16f521671e27a1f7c4e91632c2566413f4dc7f Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sun, 1 Jan 2012 21:52:10 +0100 Subject: [PATCH] add script for kernel update --- do-kernel-bump.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 do-kernel-bump.sh diff --git a/do-kernel-bump.sh b/do-kernel-bump.sh new file mode 100755 index 0000000..e7b4426 --- /dev/null +++ b/do-kernel-bump.sh @@ -0,0 +1,26 @@ +#!/bin/sh +if [ -z "$2" ]; then + echo do-kernel-bump.sh OLDVER NEWVER + exit +fi + +OLD=$1 +NEW=$2 +PACKAGES=" + sys-kernel/buffalo_ls_chl-sources sys-kernel/linux-buffalo_ls_chl \ + sys-kernel/buffalo_ls_chl2-sources sys-kernel/linux-buffalo_ls_chl2 \ + sys-kernel/buffalo_ls_hgl-sources sys-kernel/linux-buffalo_ls_hgl \ + sys-kernel/buffalo_ls_live-sources sys-kernel/linux-buffalo_ls_live \ + sys-kernel/buffalo_ls_mini-sources sys-kernel/linux-buffalo_ls_mini \ + sys-kernel/buffalo_ls_pro-sources sys-kernel/linux-buffalo_ls_pro \ + sys-kernel/buffalo_ls_pro_duo_rev1-sources sys-kernel/linux-buffalo_ls_pro_duo_rev1 \ + sys-kernel/buffalo_ls_pro_duo_rev2-sources sys-kernel/linux-buffalo_ls_pro_duo_rev2 \ + sys-kernel/buffalo_ls_xhl-sources sys-kernel/linux-buffalo_ls_xhl \ +" + +for package in ${PACKAGES}; do + name=$(echo ${package} | cut -d/ -f2) + cp ${package}/${name}-${OLD}.ebuild ${package}/${name}-${NEW}.ebuild + git add ${package}/${name}-${NEW}.ebuild + ebuild ${package}/${name}-${NEW}.ebuild manifest +done