Pārlūkot izejas kodu

Add'l CI/git script tweaks, fixes

Scott Lahteine 4 gadus atpakaļ
vecāks
revīzija
6dd054895b

+ 3
- 3
buildroot/bin/use_example_configs Parādīt failu

@@ -13,9 +13,9 @@ restore_configs
13 13
 cd Marlin
14 14
 
15 15
 $TOOL "$EXAMPLES/$RDIR/Configuration.h"     >/dev/null 2>&1 && mv wgot Configuration.h
16
-$TOOL "$EXAMPLES/$RDIR/Configuration_adv.h" >/dev/null 2>&1 && mv wgot Configuration.h
17
-$TOOL "$EXAMPLES/$RDIR/_Bootscreen.h"       >/dev/null 2>&1 && mv wgot Configuration.h
18
-$TOOL "$EXAMPLES/$RDIR/_Statusscreen.h"     >/dev/null 2>&1 && mv wgot Configuration.h
16
+$TOOL "$EXAMPLES/$RDIR/Configuration_adv.h" >/dev/null 2>&1 && mv wgot Configuration_adv.h
17
+$TOOL "$EXAMPLES/$RDIR/_Bootscreen.h"       >/dev/null 2>&1 && mv wgot _Bootscreen.h
18
+$TOOL "$EXAMPLES/$RDIR/_Statusscreen.h"     >/dev/null 2>&1 && mv wgot _Statusscreen.h
19 19
 
20 20
 rm -f wgot
21 21
 cd - >/dev/null

+ 1
- 2
buildroot/share/fonts/uxggenpages.sh Parādīt failu

@@ -139,8 +139,7 @@ BEGIN {
139 139
 }
140 140
 EOF
141 141
 
142
-which awk  >/dev/null && AWK=awk
143
-which gawk >/dev/null && AWK=gawk
142
+AWK=$(which gawk || which awk)
144 143
 
145 144
 grep -Hrn _UxGT . | grep '"' \
146 145
   | sed 's/_UxGT("/\n&/g;s/[^\n]*\n_UxGT("\([^"]*\)[^\n]*/\1 /g;s/.$//' \

+ 1
- 2
buildroot/share/git/ghtp Parādīt failu

@@ -20,8 +20,7 @@ case "$1" in
20 20
     ;;
21 21
 esac
22 22
 
23
-which awk  >/dev/null && AWK=awk
24
-which gawk >/dev/null && AWK=gawk
23
+AWK=$(which gawk || which awk)
25 24
 
26 25
 REMOTES=$(git remote -v | egrep "\t$MATCH" | "$AWK" '{print $1 " " $2}' | sort -u | sed  "s/$FORMULA/")
27 26
 

+ 1
- 2
buildroot/share/git/mfclean Parādīt failu

@@ -6,8 +6,7 @@
6 6
 # Great way to clean up your branches after messing around a lot
7 7
 #
8 8
 
9
-which awk  >/dev/null && AWK=awk
10
-which gawk >/dev/null && AWK=gawk
9
+AWK=$(which gawk || which awk)
11 10
 
12 11
 KEEP="RC|RCBugFix|dev|master|bugfix-1|bugfix-2"
13 12
 

Notiek ielāde…
Atcelt
Saglabāt