1 # Dedicated to the public domain.
2 # SPDX-License-Identifier: 0BSD
4 # awk script to substitute variables in scripts and applications.
6 # You can pass these variables to it in Makefiles or on the
10 # awkay="$(AWK_BINARY)"
13 # sysconfdirectory="$(sysconfdir)"
14 # pkgdatadirectory="$(pkgdatadir)"
18 if (/@bindirectory@/) {
19 gsub("@bindirectory@",bdir) ;
23 gsub("@PYTHONEXE@",py) ;
27 gsub("@AWKEXE@",awkay) ;
30 if (/@SUBSTPREFIX@/) {
31 gsub("@SUBSTPREFIX@",pfx) ;
35 gsub("@PERLEXE@",prl) ;
39 gsub("@SYSCONFDIR@",sysconfdirectory) ;
42 if (/@PKGDATADIRECTORY@/) {
43 gsub("@PKGDATADIRECTORY@",pkgdatadirectory) ;