create linux bundles under the prebuilt directory

This commit is contained in:
Taner Sener
2022-08-02 01:45:10 +03:00
parent ba2b668c84
commit e4e97f59ce
10 changed files with 163 additions and 28 deletions
+19 -2
View File
@@ -2384,8 +2384,8 @@ to_capital_case() {
# 2. destination file
#
overwrite_file() {
rm -f "$2"
cp "$1" "$2"
rm -f "$2" 2>>"${BASEDIR}"/build.log
cp "$1" "$2" 2>>"${BASEDIR}"/build.log
}
#
@@ -2438,3 +2438,20 @@ command_exists() {
echo 1
fi
}
#
# 1. folder path
#
initialize_folder() {
rm -rf "$1" 1>>"${BASEDIR}"/build.log 2>&1
if [[ $? -ne 0 ]]; then
return 1
fi
mkdir -p "$1" 1>>"${BASEDIR}"/build.log 2>&1
if [[ $? -ne 0 ]]; then
return 1
fi
return 0
}