Explorar o código

Streetwalrus was too lazy to search about select bash function.

Florian DORMONT %!s(int64=10) %!d(string=hai) anos
pai
achega
3e48fcfe02
Modificáronse 1 ficheiros con 8 adicións e 4 borrados
  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