X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fsrc%2Flibrary-cfg.sh;h=3112a2e53421be1bbb040982426e7c97938aa04e;hp=674baa60d5dd2423dfefea21b6fe204b29289efa;hb=5ed80e8d7031c3fa12b4915d5e1f040257a24323;hpb=efa78d11c3ea7f51c7078b64a34c98b44ecb0e1a;ds=sidebyside diff --git a/Ada95/src/library-cfg.sh b/Ada95/src/library-cfg.sh index 674baa60..3112a2e5 100755 --- a/Ada95/src/library-cfg.sh +++ b/Ada95/src/library-cfg.sh @@ -1,6 +1,6 @@ #!/bin/sh ############################################################################## -# Copyright (c) 2016,2018 Free Software Foundation, Inc. # +# Copyright (c) 2016-2018,2019 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -27,7 +27,7 @@ # authorization. # ############################################################################## # -# $Id: library-cfg.sh,v 1.4 2018/11/10 22:58:52 tom Exp $ +# $Id: library-cfg.sh,v 1.5 2019/08/31 15:32:51 tom Exp $ # # Work around incompatible behavior introduced with gnat6, which causes # gnatmake to attempt to compile all of the C objects which might be part of @@ -35,6 +35,8 @@ # by making a copy of the project file with that information filled in). model=$1 shift 1 +suffix=$1 +shift 1 input=$1 shift 1 param= @@ -55,9 +57,22 @@ done SHARE="-- " test "x$model" = "xdynamic" && SHARE= -sed \ - -e '/for Library_Options use /s,-- ,'"$SHARE"',' \ - -e '/for Default_Switches ("C") use/s,-- ,,' \ - -e '/for Default_Switches ("C") use/s% use .*'%" use($param);"% \ - $input -exit 0 +SCRIPT=library-cfg.tmp +cat >$SCRIPT <