overlay/armv6j-do-kernel-create.sh
2012-12-15 21:57:06 +01:00

28 lines
704 B
Bash
Executable File

#!/bin/sh
if [ -z "$1" ]; then
echo armv6j-do-kernel-create.sh KVERSION
exit
fi
VER=$1
BASEDIR=$(dirname $0)
source $BASEDIR/armv6j-kernels
for package in ${PACKAGES}; do
if [ ! -e ${package} ]; then
name=$(echo ${package} | cut -d/ -f2)
mkdir ${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