diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-05-24 13:19:49 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-05-24 13:19:49 +0000 |
commit | de5bb8a212717730ee837be4b4802e239bd9ed7f (patch) | |
tree | ea326cee699312d373eb63ca03b20ee255f4bd4e /distrib/miniroot/makeconf.awk | |
parent | 2d9bd9442f5fc77c2564c93b7dbe84ed4bc4c17c (diff) |
add LIBS option the crunchgen config, allows adding custom libraries
in list.local (e.g. for adding ssh to the ramdisk); ok deraadt@
Diffstat (limited to 'distrib/miniroot/makeconf.awk')
-rw-r--r-- | distrib/miniroot/makeconf.awk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/distrib/miniroot/makeconf.awk b/distrib/miniroot/makeconf.awk index e1cdba40132..03b2645cf5b 100644 --- a/distrib/miniroot/makeconf.awk +++ b/distrib/miniroot/makeconf.awk @@ -1,4 +1,4 @@ -# $OpenBSD: makeconf.awk,v 1.8 2002/04/30 03:23:44 deraadt Exp $ +# $OpenBSD: makeconf.awk,v 1.9 2002/05/24 13:19:48 markus Exp $ # $NetBSD: makeconf.awk,v 1.3 1996/05/04 15:45:32 pk Exp $ # @@ -7,8 +7,12 @@ BEGIN { printf("#\n# This file is automatically generated by `makeconf'\n#\n\n"); - printf("\nlibs -lutil -lotermcap -ll -lm -lkrb -ldes\n"); + libs = "libs -lutil -lotermcap -ll -lm -lkrb -ldes"; +} +$1 == "LIBS" { + $1 = tolower($1); + libs = $0; } $1 == "SRCDIRS" { @@ -59,7 +63,7 @@ END { for (i = 1; i <= n; i++) printf("ln %s %s\n", p, links[i,p]); } - printf("\n\n"); + printf("\n%s\n\n", libs); # `special' directives for (s in specials) { |