move bin to .local/bin

This commit is contained in:
2023-09-15 15:46:04 -04:00
parent 2538eed296
commit 42c88c9eef
19 changed files with 248 additions and 21 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/sh
branch_name="$(git branch --show-current)"
if [ $# = 0 ]; then
rsync -P -r "${XBPS_DISTDIR}/hostdir/binpkgs/${branch_name}" daybreak:
rsync -P -r "${XBPS_DISTDIR}/hostdir/binpkgs/${branch_name}" epoch:
elif [ "$1" = "repo" ]; then
cd "${XBPS_DISTDIR}/hostdir/binpkgs/${branch_name}"
for p in *.xbps; do
rsync -P $p daybreak:/srv/repo
ssh daybreak "xbps-rindex --add /srv/repo/$p;
xbps-rindex --privkey /srv/repo/private.pem --sign-pkg /srv/repo/*.xbps"
done
else
rsync -P -r "${XBPS_DISTDIR}/hostdir/binpkgs/${branch_name}" "$1":
fi