From a0d18a666de03df45f5690e28bb1c4ecb60e7f11 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 22 Dec 2021 23:52:15 +0000 Subject: added only variable to only build a single package or list of packages --- build-repo.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/build-repo.sh b/build-repo.sh index 71ef23c..fd60aa9 100755 --- a/build-repo.sh +++ b/build-repo.sh @@ -26,12 +26,18 @@ build () { start-index $REPO_NAME $REPO_INDEX printf "" > xibuild.report.log - for BUILD_FILE in $REPO/*; do - DEST=dist/$REPO_NAME + for BUILD_FILE in $REPO/*.xibuild; do + if [ ${#ONLY[@]} == 0 ] || ( echo ${ONLY[*]} | grep -q $(basename -s .xibuild $BUILD_FILE)); then - $XIBUILD -o $DEST $BUILD_FILE - - extend-index $BUILD_FILE $REPO_INDEX + DEST=dist/$REPO_NAME + + $XIBUILD -o $DEST $BUILD_FILE + + extend-index $BUILD_FILE $REPO_INDEX + + else + echo "skipping $BUILD_FILE" + fi done; rm xibuild.report.log @@ -171,4 +177,3 @@ fetch build index clean -sync $@ -- cgit v1.2.1