Parcourir la Source

Streetwalrus was too lazy to search about select bash function.

Florian DORMONT il y a 10 ans
Parent
commit
3e48fcfe02
1 fichiers modifiés avec 8 ajouts et 4 suppressions
  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