Skip to content

Commit

Permalink
[Fix] Fixed compile.sh function scope
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrypt0 committed Mar 19, 2019
1 parent bb06f59 commit b976a9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
!/sysroot/.gitkeep

/out
/bin

# The following files are ignored because they need some cleanup
REQUIRED_PACKAGES
Expand Down
9 changes: 9 additions & 0 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ get_script_dir()

compile_module()
{
(
local MOD_DIR=$1
local MOD_NAME=$(basename "$MOD_DIR")

Expand Down Expand Up @@ -64,6 +65,7 @@ compile_module()
./$MOD_INSTALL || exit 1

printf "\n\nDone!\n\n"
)
}

###############################################################################
Expand Down Expand Up @@ -95,4 +97,11 @@ for SUB_DIR in $SRC_DIR/* ; do
fi
done

BIN_DIR=$(get_script_dir)/../bin
BUILD_DIR=$(get_script_dir)/../build

if [ -d "$BIN_DIR" ]; then
cp -R $BIN_DIR/* $BUILD_DIR/
fi


0 comments on commit b976a9f

Please sign in to comment.