From 01b1e08a62a1e7a1976ceec2edf3a488ab48c928 Mon Sep 17 00:00:00 2001 From: Chizi123 <joelgrun@gmail.com> Date: Sun, 09 Jun 2019 09:01:33 +0000 Subject: [PATCH] ready for docker testing --- makebuild.sh | 9 +++++++++ repo/build.sh | 16 +++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/makebuild.sh b/makebuild.sh new file mode 100644 index 0000000..3ea668f --- /dev/null +++ b/makebuild.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +BUILDDIR=$(dirname "$(realpath $0)") +cd $BUILDDIR + +docker run -ti -w /build -v $BUILDDIR/repo:/build joeleg/archbuild ./build.sh +# git add repo/x86_64 +# git commit -m "'date =%d/%m/%y-%H:%M'" +# git push diff --git a/repo/build.sh b/repo/build.sh index 4933924..0dce5e0 100644 --- a/repo/build.sh +++ b/repo/build.sh @@ -34,20 +34,22 @@ return 0 } -for d in 'emacs-git' +for d in `find . -maxdepth 1 -not -path '*/\.*' -type d` do - if [ "$d" = "x86_64" ]; then + if [ "$d" = "./x86_64" ] || [ "$d" = "." ]; then continue fi cd $d git pull - makepkg + makepkg -s --noconfirm latest=$(newest_matching_file '*.pkg.tar.xz') cd .. rsync $d/$latest x86_64/$latest - repo-add ./repo.db.tar.xz x86_64/$latest + repo-add ./Chizi123.db.tar.xz x86_64/$latest done -git add x86_64 -git commit -m "'$(date +%d/%m/%y)'" -git push +cp Chizi123.db.tar.xz x86_64/Chizi123.db +cp Chizi123.files.tar.xz x86_64/Chizi123.files +# git add x86_64 +# git commit -m "'$(date +%d/%m/%y-%H:%M)'" +# git push -- Gitblit v1.9.3