Browse Source

scripts: add script for manual setting prs of packages in a prserver

set-pr-number
Henning Heinold 7 years ago
parent
commit
5b3d287173
  1. 29
      scripts/set-prserver-pr-number.sh

29
scripts/set-prserver-pr-number.sh

@ -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…
Cancel
Save