overlay/armv7a-do-kernel-create.sh

29 lines
724 B
Bash
Raw Normal View History

2012-12-15 21:57:06 +01:00
#!/bin/sh
if [ -z "$1" ]; then
echo armv7a-do-kernel-create.sh KVERSION
exit
fi
VER=$1
BASEDIR=$(dirname $0)
source $BASEDIR/armv7a-kernels
for package in ${PACKAGES}; do
if [ ! -e ${package} ]; then
name=$(echo ${package} | cut -d/ -f2)
mkdir ${package}
git add ${package}
cp Documentation/ebuild/metadata.xml ${package}
if [ ${name/-*/} = "linux" ]; then
newname=$(echo ${name} | cut -d- -f2)
sed -e "s:@nasname@:${newname}:" Documentation/ebuild/linux-flavour.ebuild > ${package}/${name}-${VER}.ebuild
else
newname=${name/-*/}
sed -e "s:@nasname@:${newname}:" Documentation/ebuild/flavour-sources.ebuild > ${package}/${name}-${VER}.ebuild
fi
fi
git add ${package}
git add ${package}/*
done