Shorten script

This commit is contained in:
FriendlyNeighborhoodShane 2019-10-07 11:39:36 +04:00
parent f407ca1ff9
commit 558594a0b5

View File

@ -69,7 +69,7 @@ for object in $stuff; do
done; done;
done; done;
for object in $stuff_arch; do for object in $stuff_arch $stuff_sdk $stuff_arch_sdk; do
for realobject in $resdir/$(dirname "$object")/-*-/$(basename "$object") $resdldir/$(dirname "$object")/-*-/$(basename "$object"); do for realobject in $resdir/$(dirname "$object")/-*-/$(basename "$object") $resdldir/$(dirname "$object")/-*-/$(basename "$object"); do
[ -e "$realobject" ] || continue; [ -e "$realobject" ] || continue;
cond="$(basename "$(dirname "$realobject")")"; cond="$(basename "$(dirname "$realobject")")";
@ -79,26 +79,6 @@ for object in $stuff_arch; do
done; done;
done; done;
for object in $stuff_sdk; do
for realobject in $resdir/$(dirname "$object")/-*-/$(basename "$object") $resdldir/$(dirname "$object")/-*-/$(basename "$object"); do
[ -e "$realobject" ] || continue;
cond="$(basename "$(dirname "$realobject")")";
echo " -- BUILDER: Copying $object ($realobject to $tmpdir/$(dirname "$object")/$cond/)";
mkdir -p "$tmpdir/$(dirname "$object")/$cond/";
cp -Rf "$realobject" "$tmpdir/$(dirname "$object")/$cond/";
done;
done;
for object in $stuff_arch_sdk; do
for realobject in $resdir/$(dirname "$object")/-*--*-/$(basename "$object") $resdldir/$(dirname "$object")/-*--*-/$(basename "$object"); do
[ -e "$realobject" ] || continue;
cond="$(basename "$(dirname "$realobject")")";
echo " -- BUILDER: Copying $object ($realobject to $tmpdir/$(dirname "$object")/$cond/)";
mkdir -p "$tmpdir/$(dirname "$object")/$cond/";
cp -Rf "$realobject" "$tmpdir/$(dirname "$object")/$cond/";
done;
done;
# Zip # Zip
echo " "; echo " ";