Explorar o código

Make mkconfig loop

Streetwalrus Einstein %!s(int64=10) %!d(string=hai) anos
pai
achega
1a1c0eeeb8
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      mkconfig

+ 3 - 2
mkconfig

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