This commit is contained in:
parent
03f120dc07
commit
b80073a4c1
1 changed files with 6 additions and 7 deletions
13
build.sh
13
build.sh
|
@ -1,19 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
|
|
||||||
useradd build -m
|
useradd build -m
|
||||||
echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
chown -R build:build *
|
chown -R build:build .
|
||||||
|
|
||||||
for d in */ ; do
|
for d in */ ; do
|
||||||
echo "$d"
|
echo "$d"
|
||||||
cd "$d"
|
cd "$d" || continue
|
||||||
sudo -u build sh -c 'makepkg -s --skippgpcheck --noconfirm'
|
|
||||||
if [ $? -eq 0 ]; then
|
if sudo -u build sh -c 'makepkg -s --skippgpcheck --noconfirm' ; then
|
||||||
for pkg in *.pkg.tar.zst ; do
|
for pkg in *.pkg.tar.zst ; do
|
||||||
cp $pkg /repo/
|
cp "$pkg" /repo/
|
||||||
repo-add /repo/nyyu.db.tar.zst /repo/$pkg
|
repo-add /repo/nyyu.db.tar.zst /repo/"$pkg"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Add table
Reference in a new issue