Browse Source

Update travis to handle custom_bootscreen.h files

João Brázio 8 years ago
parent
commit
9775af0c24
2 changed files with 9 additions and 1 deletions
  1. 4
    0
      buildroot/bin/restore_configs
  2. 5
    1
      buildroot/bin/use_example_configs

+ 4
- 0
buildroot/bin/restore_configs View File

@@ -3,3 +3,7 @@
3 3
 cp Marlin/Configuration.h.backup      Marlin/Configuration.h
4 4
 cp Marlin/Configuration_adv.h.backup  Marlin/Configuration_adv.h
5 5
 cp Marlin/pins_RAMPS_14.h.backup      Marlin/pins_RAMPS_14.h
6
+
7
+if [ -f Marlin/_Bootscreen.h ]; then
8
+  rm Marlin/_Bootscreen.h
9
+fi

+ 5
- 1
buildroot/bin/use_example_configs View File

@@ -1,3 +1,7 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
-eval "cp Marlin/example_configurations/$1/Configuration* Marlin/"
3
+eval "cp Marlin/example_configurations/${1}/Configuration* Marlin/"
4
+
5
+if [ -f "Marlin/example_configurations/${1}/_Bootscreen.h" ]; then
6
+  cp "Marlin/example_configurations/${1}/_Bootscreen.h" Marlin/
7
+fi

Loading…
Cancel
Save