summarylogtreecommitdiffstats
path: root/updates.sh
blob: 1b6bb726589eb042681441f9518de4abc303a1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#re-archive the scripts and update the checksums, etc.
[[ -d skywire-deb-scripts ]] && tar -czvf skywire-deb-scripts.tar.gz skywire-deb-scripts
[[ -d skywire-scripts ]] && tar -czvf skywire-scripts.tar.gz skywire-scripts
[[ -f cc.deb.PKGBUILD ]] && updpkgsums cc.deb.PKGBUILD && _ccdebPKGBUILD="cc.deb.PKGBUILD"
[[ -f deb.PKGBUILD ]] && updpkgsums deb.PKGBUILD && _debPKGBUILD="deb.PKGBUILD"
[[ -f dev.PKGBUILD ]] && sed -i "s/pkgver=0.6.0/pkgver='autogenerated'/" dev.PKGBUILD && updpkgsums dev.PKGBUILD && _devPKGBUILD="dev.PKGBUILD"
[[ -f git.PKGBUILD ]] && sed -i "s/pkgver=0.6.0/pkgver='autogenerated'/" git.PKGBUILD && updpkgsums git.PKGBUILD && _gitPKGBUILD="git.PKGBUILD"

updpkgsums
makepkg --printsrcinfo > .SRCINFO
echo "git add -f ${_debPKGBUILD} ${_ccdebPKGBUILD} ${_devPKGBUILD} ${_gitPKGBUILD} PKGBUILD .SRCINFO skywire-scripts.tar.gz skywire-deb-scripts.tar.gz updates.sh"
echo 'git commit -m ""'