This commit is contained in:
parent
4b7ec3cacf
commit
4defaf8d97
36
buildtestpublish_all.sh
Executable file
36
buildtestpublish_all.sh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function buildtestpublish() {
|
||||
local dir="$1"
|
||||
|
||||
cd "$dir"
|
||||
|
||||
echo "Building $(basename "$dir")"
|
||||
|
||||
}
|
||||
|
||||
function buildtestpublish_all() {
|
||||
PREVIOUS_DIR=$(pwd)
|
||||
|
||||
# find all subdirectories in the current directory that don't begin with a dot
|
||||
find "$SCRIPT_DIR" -maxdepth 1 -type d \
|
||||
-not -name ".*" \
|
||||
-not -path "$SCRIPT_DIR" \
|
||||
-print0 | while IFS= read -r -d '' dir; \
|
||||
do
|
||||
|
||||
buildtestpublish "${dir}"
|
||||
done
|
||||
|
||||
cd "$PREVIOUS_DIR"
|
||||
}
|
||||
|
||||
buildtestpublish_all
|
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
|
||||
|
||||
echo "wheeeee!"
|
||||
|
||||
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
|
||||
|
||||
|
||||
# build and publish all dropshell tools
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# build and publish all dropshell tools
|
||||
|
Loading…
x
Reference in New Issue
Block a user