mirror of
https://github.com/built-aur/packages
synced 2024-08-14 23:01:15 +00:00
Update push-aur.sh
This commit is contained in:
parent
c09cf21d13
commit
25d28def04
1 changed files with 9 additions and 8 deletions
|
@ -58,22 +58,22 @@ push-aur() {
|
||||||
then
|
then
|
||||||
echo "==> ${pkgname}"
|
echo "==> ${pkgname}"
|
||||||
|
|
||||||
echo '::group::Cloning AUR package into /tmp/local-repo'
|
echo '::group::Cloning AUR package into aur-repo'
|
||||||
git clone -v "ssh://aur@aur.archlinux.org/${pkgname}.git" /tmp/local-repo
|
git clone -v "ssh://aur@aur.archlinux.org/${pkgname}.git" aur-repo
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|
||||||
echo '::group::Copying files into /tmp/local-repo'
|
echo '::group::Copying files into aur-repo'
|
||||||
cp -r "${pkgdir}"/* /tmp/local-repo/
|
cp -r "${pkgdir}"/* aur-repo
|
||||||
rm -rf /tmp/local-repo/built.conf
|
rm -rf aur-repo/built.conf
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|
||||||
echo '::group::Generating .SRCINFO'
|
echo '::group::Generating .SRCINFO'
|
||||||
cd /tmp/local-repo
|
cd aur-repo
|
||||||
makepkg --printsrcinfo >.SRCINFO
|
makepkg --printsrcinfo >.SRCINFO
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|
||||||
echo '::group::Committing files to the repository'
|
echo '::group::Committing files to the repository'
|
||||||
git add /tmp/local-repo
|
git add .
|
||||||
git commit -m "sync with built-aur"
|
git commit -m "sync with built-aur"
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|
||||||
|
@ -82,7 +82,8 @@ push-aur() {
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|
||||||
echo '::group::Cleanup'
|
echo '::group::Cleanup'
|
||||||
rm -rf /tmp/local-repo/
|
cd ..
|
||||||
|
rm -rf aur-repo
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue