forgot to actually implement the -P option…
authormirabilos <t.glaser@tarent.de>
Fri, 26 Jul 2019 15:53:08 +0000 (17:53 +0200)
committermirabilos <mirabilos@evolvis.org>
Fri, 26 Jul 2019 15:53:08 +0000 (17:53 +0200)
Build.sh

index 703b614..b362fca 100644 (file)
--- a/Build.sh
+++ b/Build.sh
@@ -348,16 +348,24 @@ add_cppflags '-Dmgp_version='\''"$(mgpversion)"'\'' -DMCPPF'
 
 e=echo
 eq=0
+last=
 pkgs='imlib2 libbsd-overlay xft'
 
 for i
 do
-       case :$i in
+       case $last:$i in
+       P:*)
+               pkgs=$i
+               last=
+               ;;
        :-g)
                # checker, debug, valgrind build
                add_cppflags -DDEBUG
                CFLAGS="$CFLAGS -g3 -fno-builtin"
                ;;
+       :-P)
+               last=P
+               ;;
        :-Q)
                eq=1
                ;;