mirror of
https://github.com/Fishwaldo/yocto-meta-kf5.git
synced 2025-03-15 19:51:45 +00:00
Add script to add or remove framework releases
Summary: Also, move external dependencies out of recipes-kf5, which makes automation easier. Reviewers: cordlandwehr Reviewed By: cordlandwehr Maniphest Tasks: T6612 Differential Revision: https://phabricator.kde.org/D7392
This commit is contained in:
parent
19817e0e4c
commit
1a5c284799
3 changed files with 35 additions and 0 deletions
35
scripts/kf5-release.sh
Executable file
35
scripts/kf5-release.sh
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# add/remove KF5 release recipes
|
||||
#
|
||||
|
||||
function usage()
|
||||
{
|
||||
echo "$1 [add|remove] <version>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
command=$1
|
||||
if [ -z "$command" ]; then usage $0; fi
|
||||
|
||||
version=$2
|
||||
if [ -z "$version" ]; then usage $0; fi
|
||||
|
||||
base=`dirname $0`/../recipes-kf5
|
||||
|
||||
case $command in
|
||||
add)
|
||||
for recipe in `find $base -name "*.inc" | grep -v /staging/`; do
|
||||
name=`echo $recipe | sed -e "s,\.inc,_${version}.bb,"`
|
||||
echo -e 'require ${PN}.inc\nSRCREV = "v${PV}"' > $name
|
||||
done
|
||||
;;
|
||||
remove)
|
||||
for recipe in `find $base -name "*_$version.bb"`; do
|
||||
rm $recipe
|
||||
done
|
||||
;;
|
||||
*)
|
||||
usage $0
|
||||
;;
|
||||
esac
|
Loading…
Add table
Reference in a new issue