overlay/do-kernel-bump.sh

28 lines
1.1 KiB
Bash
Raw Normal View History

2012-01-01 21:52:10 +01:00
#!/bin/sh
2012-01-01 22:07:30 +01:00
if [ -z "$3" ]; then
echo do-kernel-bump.sh OLDVER NEWVER NAS_PATCHES_VER
2012-01-01 21:52:10 +01:00
exit
fi
OLD=$1
NEW=$2
2012-01-01 22:07:30 +01:00
VER=$3
2012-01-01 21:52:10 +01:00
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)
2012-01-01 22:07:30 +01:00
sed -e "s:^K_NASPATCHES_VER=.*:K_NASPATCHES_VER=\"${VER}\":" ${package}/${name}-${OLD}.ebuild > ${package}/${name}-${NEW}.ebuild
2012-01-01 21:52:10 +01:00
git add ${package}/${name}-${NEW}.ebuild
ebuild ${package}/${name}-${NEW}.ebuild manifest
done