Skip to content
Permalink
bdf98a6d92
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 41 lines (36 sloc) 990 Bytes
#!/bin/bash
RELDATE=$1
MD5SUM=$2
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}
PCIURL="http://pci-ids.ucw.cz/v2.2/pci.ids"
sed -ri "\
/^# BEE_VERSION pciutils-3.7.0./ s/2[0-9]{3}.[01][0-9].[0-3][0-9]/${RELDATE}/;\
/^PCIURL=/ s/[0-9a-f]{32}/${MD5SUM}/
" 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