File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if [ "$0" != "bash" -a "$0" != "-bash" -a "$0" != "/bin/bash" ]; then
18
18
fi
19
19
20
20
NERVES_ROOT=$( dirname $( readlink -f $BASH_SOURCE ) )
21
- NERVES_DEFCONFIG=` grep BR2_DEFCONFIG= buildroot/.config | sed -e ' s/.*"\(.*\)"/\1/' `
21
+ NERVES_DEFCONFIG=` grep BR2_DEFCONFIG= $NERVES_ROOT / buildroot/.config | sed -e ' s/.*"\(.*\)"/\1/' `
22
22
23
23
source $NERVES_ROOT /scripts/nerves-env-helper.sh $NERVES_ROOT
24
24
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ tar -C $TMPDIR -xf $BASE_FS_CONTENTS
36
36
if [ -d " $RELEASE_DIR " ]; then
37
37
mkdir -p $TMPDIR /srv/erlang
38
38
rm -fr $TMPDIR /srv/erlang/*
39
+
40
+ if [ ! -d " $RELEASE_DIR /lib" -o ! -d " $RELEASE_DIR /releases" ]; then
41
+ echo " $SCRIPT_NAME : ERROR: Expecting '$RELEASE_DIR ' to contain 'lib' and 'releases' subdirectories"
42
+ exit 1
43
+ fi
44
+
39
45
cp -r $RELEASE_DIR /* $TMPDIR /srv/erlang
40
46
41
47
# Clean up the Erlang release of all the files that we don't need.
@@ -51,6 +57,10 @@ if [ -d "$RELEASE_DIR" ]; then
51
57
find $TMPDIR /usr/lib/erlang -type d -empty -delete
52
58
find $TMPDIR /srv/erlang -type d -empty -delete
53
59
60
+ # Delete any temp files, release tarballs, etc from the base release directory
61
+ # Nothing is supposed to be there.
62
+ find $TMPDIR /srv/erlang -maxdepth 1 -type f -delete
63
+
54
64
# Strip debug information from executables and libraries
55
65
# Symbols are still available to the user in the release directory.
56
66
find $TMPDIR /srv/erlang -type f -perm /111 -exec $CROSSCOMPILE -strip " {}" " ;"
You can’t perform that action at this time.
0 commit comments