Compare commits
1 Commits
master
...
set-pr-num
Author | SHA1 | Date |
---|---|---|
Henning Heinold | 5b3d287173 |
|
@ -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}
|
Loading…
Reference in New Issue