(MOD) Aborted using bash for script executing for scripts modified are now supporting POSIX Shell.

(MOD) Modified github action file for abort supporting MS Windows as the target in current stage.
This commit is contained in:
2024-06-25 17:51:43 +08:00
parent b9c5bfbc00
commit 5e05e24e38
2 changed files with 10 additions and 21 deletions

View File

@@ -7,8 +7,7 @@ fi
SRC="$PWD"
DST=/usr/include/Compound
PROJ=("Array" "Paper" "Pen" "Render" "Status" "Var" "MemMan" "Stack" "Utils"\
"String" "Object")
set -- Array Paper Pen Render Status Var MemMan Stack Utils String Object
# Create directory.
if [ ! -d "$DST" ]; then
@@ -16,22 +15,15 @@ if [ ! -d "$DST" ]; then
fi
# Install project-like headers.
PROJLEN=${#PROJ[*]}
echo "======== $PROJLEN projects in total ========"
idx=0
while :; do
if [[ $idx -eq $PROJLEN || $idx -gt $PROJLEN ]]; then
break;
fi
while :; do
p="$1"
if [ -z "$1" ]; then break; fi
p="${PROJ[$idx]}"
cd "$p"
echo "`date` >>> Installing $p"
cd "$p" || exit 1
echo "$(date) >>> Installing $p"
cp -v include/*.h "$DST"
cd "$SRC"
((idx++))
cd "$SRC" || exit 1
shift 1
echo
done