Selaa lähdekoodia

Streetwalrus was too lazy to search about select bash function.

Florian DORMONT 10 vuotta sitten
vanhempi
commit
3e48fcfe02
1 muutettua tiedostoa jossa 8 lisäystä ja 4 poistoa
  1. 8 4
      mkconfig

+ 8 - 4
mkconfig

@@ -1,6 +1,10 @@
 #!/bin/bash
 
-rm -f config.mk
-
-echo "include platform/nspire/rules.mk" >> config.mk
-
+old_PS3=PS3
+PS3='Choose your target platform : '
+select TARGET in nspire sfml; do
+	rm config.mk -f
+	echo "include platform/$TARGET/rules.mk" >> config.mk
+	break
+done
+PS3=old_PS3