]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/src/library-cfg.sh
ncurses 6.4 - patch 20240420
[ncurses.git] / Ada95 / src / library-cfg.sh
index 3112a2e53421be1bbb040982426e7c97938aa04e..b9b5c938949583edecf868de9e432232ebd46ff2 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 ##############################################################################
-# Copyright (c) 2016-2018,2019 Free Software Foundation, Inc.                #
+# Copyright 2018-2020,2022 Thomas E. Dickey                                  #
+# Copyright 2016,2018 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 +28,7 @@
 # authorization.                                                             #
 ##############################################################################
 #
-# $Id: library-cfg.sh,v 1.5 2019/08/31 15:32:51 tom Exp $
+# $Id: library-cfg.sh,v 1.8 2022/07/16 17:03:59 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,8 +36,6 @@
 # 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=
@@ -61,10 +60,6 @@ SCRIPT=library-cfg.tmp
 cat >$SCRIPT <<EOF
 /for Library_Options use /{
        s,-- ,$SHARE,
-       s,-lform,-lform$suffix,g
-       s,-lmenu,-lmenu$suffix,g
-       s,-lpanel,-lpanel$suffix,g
-       s,-lncurses,-lncurses$suffix,g
 }
 /for Default_Switches ("C") use/{
        s,-- ,,
@@ -72,7 +67,7 @@ cat >$SCRIPT <<EOF
 }
 EOF
 
-sed -f $SCRIPT $input
+sed -f "$SCRIPT" "$input"
 rc=$?
-rm -f $SCRIPT
-exit $?
+rm -f "$SCRIPT"
+exit $rc