|
|
@ -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"; |
|
|
|