add support for nas-patches

This commit is contained in:
Mario Fetka 2012-01-01 22:07:30 +01:00
parent 6e16f52167
commit b65f47d20b

View File

@ -1,11 +1,12 @@
#!/bin/sh
if [ -z "$2" ]; then
echo do-kernel-bump.sh OLDVER NEWVER
if [ -z "$3" ]; then
echo do-kernel-bump.sh OLDVER NEWVER NAS_PATCHES_VER
exit
fi
OLD=$1
NEW=$2
VER=$3
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 \
@ -20,7 +21,7 @@ PACKAGES="
for package in ${PACKAGES}; do
name=$(echo ${package} | cut -d/ -f2)
cp ${package}/${name}-${OLD}.ebuild ${package}/${name}-${NEW}.ebuild
sed -e "s:^K_NASPATCHES_VER=.*:K_NASPATCHES_VER=\"${VER}\":" ${package}/${name}-${OLD}.ebuild > ${package}/${name}-${NEW}.ebuild
git add ${package}/${name}-${NEW}.ebuild
ebuild ${package}/${name}-${NEW}.ebuild manifest
done