Compare commits

...

1 Commits

Author SHA1 Message Date
Henning Heinold 5b3d287173 scripts: add script for manual setting prs of packages in a prserver 2014-09-30 17:11:18 +02:00
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#!/bin/sh
PACKAGES="libosmocore \
libosmo-abis \
libosmo-netif \
libosmo-sccp \
osmo-pcu \
osmo-bts \
openbsc \
openggsn \
"
EXPORT_FILE="pr.conf"
if [ "$1" = "" ]; then
echo "Error: No PR given"
exit 1
fi
PR="$1"
bitbake-prserv-tool export ${EXPORT_FILE}
for PACKAGE in ${PACKAGES}; do
REGEXP="\(^PRAUTO.*"${PACKAGE}".*\s\)\(\"[0-9]*\)\(\"\)"
sed -i -e "s/${REGEXP}/\1\"${PR}\"/" ${EXPORT_FILE}
done
bitbake-prserv-tool import ${EXPORT_FILE}