diff options
Diffstat (limited to 'cmd/build-all.sh')
-rwxr-xr-x | cmd/build-all.sh | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/cmd/build-all.sh b/cmd/build-all.sh deleted file mode 100755 index b626592..0000000 --- a/cmd/build-all.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/sh - -CMD_DIR="$(realpath $(dirname $0))" -PATH=$PATH:$CMD_DIR -PROJ_DIR="$(realpath $CMD_DIR/..)" - -while : -do - >"$TMP/before.txt" find "${PROJ_DIR}" -name '*.txz' - mkdir -p "${PROJ_DIR}/patches/packages/" - for pkg in $PROJ_DIR/patches/source/*; do - ( - cd "$pkg" - - export OUTPUT="${PROJ_DIR}/patches/packages/" - PKG_NAME=$(basename $(realpath .)) - - built=$(find "$OUTPUT" -name "$PKG_NAME-*.txz") - if [ -n "$built" ]; then - continue - fi - - sh *.SlackBuild - built="$(find "$TMP" -name "*.txz")" - if [ -z "$built" ]; then - continue - fi - mkdir -p "${OUTPUT}" - upgradepkg --install-new "$TMP"/*.txz - mv "$TMP"/*.txz "${OUTPUT}" - ) - done - - for pkg in $PROJ_DIR/source/**/*; do - ( - cd "$pkg" - - export OUTPUT="${PROJ_DIR}/slackware/$(pkg-set.sh)" - PKG_NAME=$(basename $(realpath .)) - - built=$(find "$OUTPUT" -name "$PKG_NAME-*.txz") - if [ -n "$built" ]; then - continue - fi - - sh *.SlackBuild - built="$(find "$TMP" -name "*.txz")" - if [ -z "$built" ]; then - continue - fi - mkdir -p "${OUTPUT}" - upgradepkg --install-new "$TMP"/*.txz - mv "$TMP"/*.txz "${OUTPUT}" - ) - done - >"$TMP/after.txt" find "${PROJ_DIR}" -name '*.txz' - - NEW_PACKAGES="$(diff $TMP/before.txt $TMP/after.txt | grep "^>" | sed "s#^> ##")" - if [ ! $NEW_PACKAGES ]; then - break - fi -done - |