Commit 4309e6a 1 parent 0c3d1cf commit 4309e6a Copy full SHA for 4309e6a
File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 14
14
# build_all_examples [...] branch [resume-from]
15
15
#
16
16
17
- . mfutil
17
+ HERE=` dirname $0 `
18
+
19
+ . " $HERE /mfutil"
18
20
19
21
GITREPO=https://github.com/MarlinFirmware/Configurations.git
20
22
STAT_FILE=./.pio/.buildall
@@ -123,7 +125,7 @@ CONF_TREE=$( ls -d "$TMP"/config/examples/*/ "$TMP"/config/examples/*/*/ "$TMP"/
123
125
for CONF in $CONF_TREE ; do
124
126
125
127
# Get a config's directory name
126
- DIR=$( echo $CONF | sed " s|$TMP /config/examples/||" )
128
+ DIR=$( echo $CONF | " $SED " " s|$TMP /config/examples/||" )
127
129
128
130
# If looking for a config, skip others
129
131
[[ $FIRST_CONF ]] && [[ $FIRST_CONF != $DIR && " $FIRST_CONF /" != $DIR ]] && continue
Original file line number Diff line number Diff line change 5
5
# Usage: build_example internal config-home config-folder
6
6
#
7
7
8
- . mfutil
8
+ HERE=` dirname $0 `
9
+
10
+ . " $HERE /mfutil"
9
11
10
12
# Require 'internal' as the first argument
11
13
[[ " $1 " == " internal" ]] || { echo " Don't call this script directly, use build_all_examples instead." ; exit 1 ; }
@@ -36,6 +38,6 @@ unset IFS; set +f
36
38
echo -e " \n#define NO_CONTROLLER_CUSTOM_WIRING_WARNING" >> Marlin/Configuration.h
37
39
38
40
echo " Building the firmware now..."
39
- $HERE /mftest -s -a -n1 || { echo " Failed" ; exit 1; }
41
+ " $HERE /mftest" -s -a -n1 || { echo " Failed" ; exit 1; }
40
42
41
43
echo " Success"
Original file line number Diff line number Diff line change 7
7
which curl 1> /dev/null 2>&1 || { echo " curl not found! Please install it." ; exit ; }
8
8
which git 1> /dev/null 2>&1 || { echo " git not found! Please install it." ; exit ; }
9
9
10
- SED=$( command -v gsed 2> /dev/null || command -v sed 2> /dev/null )
10
+ SED=$( which gsed sed | head -n1 )
11
11
[[ -z " $SED " ]] && { echo " No sed found, please install sed" ; exit 1 ; }
12
12
13
13
OPEN=$( which gnome-open xdg-open open | head -n1 )
14
14
15
15
SELF=` basename " $0 " `
16
- HERE=` dirname " $0 " `
17
16
18
17
# Check if called in the right location
19
18
[[ -e " Marlin/src" ]] || { echo -e " This script must be called from a Marlin working copy with:\n ./buildroot/bin/$SELF $1 " ; exit ; }
You canβt perform that action at this time.
0 commit comments