Sfoglia il codice sorgente

Streetwalrus was too lazy to search about select bash function.

Florian DORMONT 10 anni fa
parent
commit
3e48fcfe02
1 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  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