overlay/armv5tel-do-kernel-create.sh

30 lines
926 B
Bash
Raw Normal View History

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