2012-01-01 21:52:10 +01:00
|
|
|
#!/bin/sh
|
2012-11-06 18:30:44 +01:00
|
|
|
if [ -z "$4" ]; then
|
|
|
|
echo do-kernel-bump.sh OLDVER NEWVER NAS_PATCHES_VER NAS_CONFIGS_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-11-06 18:30:44 +01:00
|
|
|
CNF=$4
|
2012-11-15 18:23:39 +01:00
|
|
|
BASEDIR=$(dirname $0)
|
|
|
|
source $BASEDIR/kernel
|
2012-01-01 21:52:10 +01:00
|
|
|
|
|
|
|
for package in ${PACKAGES}; do
|
|
|
|
name=$(echo ${package} | cut -d/ -f2)
|
2012-01-04 13:39:54 +01:00
|
|
|
cp ${package}/${name}-${OLD}.ebuild ${package}/${name}-${OLD}.ebuild.old
|
2012-11-06 18:30:44 +01:00
|
|
|
sed -e "s:^K_NASPATCHES_VER=.*:K_NASPATCHES_VER=\"${VER}\":" -e "s:^K_NASCONFIGS_VER=.*:K_NASCONFIGS_VER=\"${CNF}\":" ${package}/${name}-${OLD}.ebuild.old > ${package}/${name}-${NEW}.ebuild
|
2012-01-04 13:39:54 +01:00
|
|
|
rm -f ${package}/${name}-${OLD}.ebuild.old
|
2012-01-01 21:52:10 +01:00
|
|
|
git add ${package}/${name}-${NEW}.ebuild
|
|
|
|
ebuild ${package}/${name}-${NEW}.ebuild manifest
|
|
|
|
done
|