Get test configs from GitHub
This commit is contained in:
		
							parent
							
								
									b419ca254b
								
							
						
					
					
						commit
						bd550bb45a
					
				| @ -1,11 +1,17 @@ | |||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
| cp config/default/Configuration*.h Marlin | RESTORE="https://raw.githubusercontent.com/MarlinFirmware/Configurations/master/config/default" | ||||||
| 
 | 
 | ||||||
| PINS="Marlin/src/pins" | cd Marlin | ||||||
|  | 
 | ||||||
|  | rm -f Conf*.h _*screen.h | ||||||
|  | 
 | ||||||
|  | PINS="src/pins" | ||||||
| RAMPS="$PINS/ramps/pins_RAMPS.h" | RAMPS="$PINS/ramps/pins_RAMPS.h" | ||||||
| BKUP="$PINS/ramps/pins_RAMPS.backup.h" | BKUP="$PINS/ramps/pins_RAMPS.backup.h" | ||||||
| [ -f $BKUP ] && { cp "$BKUP" "$RAMPS" ; rm -f $BKUP ; } | [ -f $BKUP ] && { cp "$BKUP" "$RAMPS" ; rm -f $BKUP ; } | ||||||
| 
 | 
 | ||||||
| rm -f Marlin/_Bootscreen.h | wget -q "$RESTORE/Configuration.h" -O Configuration.h | ||||||
| rm -f Marlin/_Statusscreen.h | wget -q "$RESTORE/Configuration_adv.h" -O Configuration_adv.h | ||||||
|  | 
 | ||||||
|  | cd - >/dev/null | ||||||
|  | |||||||
| @ -2,18 +2,14 @@ | |||||||
| 
 | 
 | ||||||
| restore_configs | restore_configs | ||||||
| 
 | 
 | ||||||
| if [ -f "config/examples/$@/Configuration.h" ]; then | EXAMPLES="https://raw.githubusercontent.com/MarlinFirmware/Configurations/master/config/examples" | ||||||
|   cp "config/examples/$@/Configuration.h" Marlin/ |  | ||||||
| fi |  | ||||||
| 
 | 
 | ||||||
| if [ -f "config/examples/$@/Configuration_adv.h" ]; then | cd Marlin | ||||||
|   cp "config/examples/$@/Configuration_adv.h" Marlin/ |  | ||||||
| fi |  | ||||||
| 
 | 
 | ||||||
| if [ -f "config/examples/$@/_Bootscreen.h" ]; then | wget -q "$EXAMPLES/$@/Configuration.h"     -O wgot && mv wgot Configuration.h | ||||||
|   cp "config/examples/$@/_Bootscreen.h" Marlin/ | wget -q "$EXAMPLES/$@/Configuration_adv.h" -O wgot && mv wgot Configuration_adv.h | ||||||
| fi | wget -q "$EXAMPLES/$@/_Bootscreen.h"       -O wgot && mv wgot _Bootscreen.h | ||||||
|  | wget -q "$EXAMPLES/$@/_Statusscreen.h"     -O wgot && mv wgot _Statusscreen.h | ||||||
|  | rm -f wgot | ||||||
| 
 | 
 | ||||||
| if [ -f "config/examples/$@/_Statusscreen.h" ]; then | cd - >/dev/null | ||||||
|   cp "config/examples/$@/_Statusscreen.h" Marlin/ |  | ||||||
| fi |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user