1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 21:18:36 -06:00

fix: LURE updates work now

This commit is contained in:
Sayantan Santra 2023-07-23 18:22:35 -05:00
parent 325bbd8c6e
commit d641f3dc33
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -25,7 +25,7 @@ updpkgsums
makepkg --printsrcinfo >.SRCINFO makepkg --printsrcinfo >.SRCINFO
# Remove downloaded files # Remove downloaded files
ls | grep -v PKGBUILD | xargs -r -I {} rm -i "{}" ls | grep -v PKGBUILD | xargs -r -I {} rm "{}"
git add . git add .
git commit -m "Bumped $PKG version to $VERS" git commit -m "Bumped $PKG version to $VERS"
git push git push
@ -33,21 +33,21 @@ git push
# Update the GitHub backup repo as well # Update the GitHub backup repo as well
echo "Updating AUR backup repo..." echo "Updating AUR backup repo..."
cd "$GIT_DIR/AUR Mirror GitHub/$PKG" cd "$GIT_DIR/AUR Mirror GitHub/$PKG"
sed -i -E "s/pkgver=[0-9\.]+/pkgver=$VERS/" PKGBUILD sed -i -E "s/version=[0-9\.]+/version=$VERS/" PKGBUILD
git add . git add .
git commit -m "Bumped $PKG version to $VERS" git commit -m "Bumped $PKG version to $VERS"
git push git push
# Do the updates for LURE # Do the updates for LURE
echo "Updating LURE repo..." echo "Updating LURE repo..."
cd "$GIT_DIR/lure-repo/"
[ -d "$1" ] && PKG="$1" || PKG="$1-bin" [ -d "$1" ] && PKG="$1" || PKG="$1-bin"
cd "$PKG"
cd "$GIT_DIR/lure-repo/$PKG"
sed -i -E "s/pkgver=[0-9\.]+/pkgver=$VERS/" lure.sh sed -i -E "s/pkgver=[0-9\.]+/pkgver=$VERS/" lure.sh
update-lure-checksums.py update-lure-checksums.py
# Remove downloaded files # Remove downloaded files
ls | grep -v lure.sh | xargs -r -I {} rm -i "{}" ls | grep -v lure.sh | xargs -r -I {} rm "{}"
git add . git add .
git commit -m "Bumped $PKG version to $VERS" git commit -m "Bumped $PKG version to $VERS"
git push git push