mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2019-08-24 d9fcf8512bb029bdf7b83e20e26f384e5073d674
commit | author | age
41117a 1 #!/bin/bash
C 2
3 CHDIR=$(dirname "$(realpath $0)")/chroot 
d9fcf8 4 RUSER=joelgrun
JG 5 RLOC=35.225.177.191
6 RPATH=/var/www/joelg.cf/html/
7
41117a 8 mount --bind $CHDIR $CHDIR
C 9 $CHDIR/bin/arch-chroot $CHDIR su joel -c "cd /build/repo/dependencies;
b1ccd2 10                                                   git clone https://aur.archlinux.org/$1.git
41117a 11                                           cd $1;
C 12                                           makepkg -si --noconfirm;
13                                           ln $1-*.pkg.tar.xz ../../x86_64/;
14                                           cd ../../x86_64;
d9fcf8 15                                           #rm Chizi123.db Chizi123.files;
41117a 16                                           repo-add ../Chizi123.db.tar.xz $1-*.pkg.tar.xz;
d9fcf8 17                                           #ln ../Chizi123.db.tar.xz Chizi123.db;
JG 18                                           #ln ../Chizi123.files.tar.xz Chizi123.files;
41117a 19                                           cd ../;
d9fcf8 20                                           rsync -aL --delete x86_64 $RUSER@$RLOC:$RPATH
41117a 21                                           git add x86_64/;
C 22                                           git commit -m \"added $1\";
23                                           git push"
24 umount $CHDIR