Created
March 6, 2015 02:17
-
-
Save andreldm/efe992a2a93b705363fd to your computer and use it in GitHub Desktop.
AUR Atom Package Updater
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" = "clean" ]; then | |
find . \ | |
! -name update.sh \ | |
! -name atom-python.patch \ | |
! -name PKGBUILD \ | |
-type f -delete | |
find . ! -name . -type d -exec rm -r {} + | |
exit 0 | |
fi | |
sed -i "s/pkgver=.*/pkgver=0.$1.0/g" PKGBUILD | |
makepkg -si | |
if [ $? -eq 1 ]; then | |
md5=`md5sum atom-amd64.deb | cut -f1 -d" "` | |
sed -i "s/md5sums=.*/md5sums=('$md5'/g" PKGBUILD | |
makepkg -si | |
fi | |
mkaurball | |
burp atom-editor-bin-0.$1.0-1.src.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment