X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=mk-0th.awk;h=5a0bf4583ad8c2a0a818a6d7c211d569b33b2517;hp=fe91cca689f65883f5eb2fe3e3a9f72a294d722a;hb=3b18e0dcb8788afe80d6cdda05171669e3db0068;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8;ds=sidebyside diff --git a/mk-0th.awk b/mk-0th.awk index fe91cca6..5a0bf458 100644 --- a/mk-0th.awk +++ b/mk-0th.awk @@ -1,6 +1,6 @@ -# $Id: mk-0th.awk,v 1.17 2005/01/22 16:31:40 tom Exp $ +# $Id: mk-0th.awk,v 1.18 2010/01/09 21:45:41 tom Exp $ ############################################################################## -# Copyright (c) 1998-2004,2005 Free Software Foundation, Inc. # +# Copyright (c) 1998-2005,2010 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. # ############################################################################## # -# Author: Thomas E. Dickey 1996,1997 +# Author: Thomas E. Dickey 1996-on # # Generate list of sources for a library, together with lint/lintlib rules # @@ -36,9 +36,13 @@ # subsets (is used here to decide if wide-character code is used) # BEGIN { + which = libname; using = 0; found = 0; } + /^@/ { + which = $0; + } !/^[@#]/ { if (using == 0) { @@ -57,7 +61,11 @@ BEGIN { print "" using = 1; } - if ( $0 != "" && $1 != "link_test" ) + if (which ~ /port_/ ) + { + # skip win32 source + } + else if ( $0 != "" && $1 != "link_test" ) { if ( found == 0 ) {