Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1694 from mariux64/add-pciutils-magic
scripts/bump-pciutils.sh: add
  • Loading branch information
wwwutz committed Feb 12, 2020
2 parents 3e13f42 + 0af9bc9 commit 04eea9b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions scripts/bump-pciutils.sh
@@ -0,0 +1,35 @@
#!/bin/bash

RELDATE=$1
R=0
[[ $RELDATE =~ 2[0-9]{3}.[01][0-9].[0-3][0-9]$ ]] || R=1

if [ $R = 1 ]; then
echo "$RELDATE is no date, sucker!"
exit 1
fi

set -x
git checkout master
git pull
git checkout -B update-pciutils-${RELDATE}
sed -ri "/^# BEE_VERSION pciutils-3.6.3./ s/2[0-9]{3}.[01][0-9].[0-3][0-9]/${RELDATE}/" pciutils.be0

eval $(beeversion pciutils.be0)
set +x
echo
echo "# now go root and run"
echo "BEE_MAKEFLAGS='-j80 V=1' $(pwd)/pciutils.be0 -c"
echo "# Waiting for successful build of ${PKGFULLPKG} (may take some time via NFS)"
BEE=/src/mariux/beeroot/bee-files/${PKGFULLPKG}.bee
echo "# -e $BEE"
while [[ ! -e ${BEE} ]]; do
echo -n '.'
sleep 2
done
echo "$BEE found"
set +x
git diff
git commit -m "pciutils: update to ${PKGFULLVERSION}" pciutils.be0
hub pull-request -p --no-edit
# /src/mariux/beeroot/packages/pciutils-3.6.3.2020.02.12-0.x86_64.bee.tar.bz2

0 comments on commit 04eea9b

Please sign in to comment.