Browse Source

Add files via upload

add other software cross building support
pull/50/head
Gorgone 4 years ago
committed by GitHub
parent
commit
089e7c8c84
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      s3

19
s3

@ -18,6 +18,7 @@ configdir="$sdir/configs"
pdir="$sdir/patches"
profdir="$sdir/profiles"
bdir="$sdir/binaries"
sodir="$sdir/software"
dldir="$sdir/downloads"
fdir="$sdir/functions"
menudir="$sdir/menu_save"
@ -29,7 +30,7 @@ configdir="$sdir/configs"
# create folders
mkdir -p "$tcdir/native/bin" 2>/dev/null
mkdir -p support/{archive,binaries,downloads,logs,patches,backup_svn,menu_save,upx} 2>/dev/null
mkdir -p support/{archive,binaries,downloads,software,logs,patches,backup_svn,menu_save,upx} 2>/dev/null
# create links
[ ! -d "$ldir" ] && clear && echo -e "\n folder creation error\n\n" && exit
@ -37,6 +38,7 @@ mkdir -p support/{archive,binaries,downloads,logs,patches,backup_svn,menu_save,u
[ -L "$workdir/archive" ] || ln -sf "$adir" "$workdir/archive" 2>/dev/null
[ -L "$workdir/patches" ] || ln -sf "$pdir" "$workdir/patches" 2>/dev/null
[ -L "$workdir/binaries" ] || ln -sf "$bdir" "$workdir/binaries" 2>/dev/null
[ -L "$workdir/software" ] || ln -sf "$sodir" "$workdir/software" 2>/dev/null
[ -L "$workdir/profiles" ] || ln -sf "$profdir" "$workdir/profiles" 2>/dev/null
#set arrays
@ -131,6 +133,21 @@ else
echo "fail functions"
fi
#software build support
if [ -d "$sodir" ]
then
cd "$sodir"
x=(*)
for i in "${x[@]}"
do
if [ -f "$i" ]; then
source "$i"
plugin=$(awk '/^#simplebuild_plugin/ {printf $2}' $i)
[ -z "$plugin" ] || s3opts+=($plugin)
fi
done
fi
#initialize simplebuild
initializeANSI # load colors
auto_langset # echo "info $txt_load_ok";

Loading…
Cancel
Save