about summary refs log tree commit diff stats
path: root/cfg_defs.sh
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-11-06 16:18:09 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-11-06 16:18:09 -0500
commit18024037b515bfff83e0230b35151babe6005e18 (patch)
treeb8c80055282a00883284722a3dd6bb25234e07f0 /cfg_defs.sh
parent3d8ecbe48af249fa0d77ce4d273e32ce4b7e6e18 (diff)
downloadlynx-snapshots-18024037b515bfff83e0230b35151babe6005e18.tar.gz
snapshot of project "lynx", label v2-8-1dev_4
Diffstat (limited to 'cfg_defs.sh')
-rwxr-xr-xcfg_defs.sh67
1 files changed, 0 insertions, 67 deletions
diff --git a/cfg_defs.sh b/cfg_defs.sh
deleted file mode 100755
index d20a77f7..00000000
--- a/cfg_defs.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Translate the lynx_cfg.h and config.cache data into a table, useful for
-# display at runtime.
-
-cat <<EOF
-#ifndef CFG_DEFS_H
-#define CFG_DEFS_H 1
-
-static CONST struct {
-	CONST char *name;
-	CONST char *value;
-} config_cache[] = {
-EOF
-
-# Empirical test for format of config.cache.
-#     I'd welcome a better touchstone.
-# Ideally, "configure" should generate a uniform format config.cache.
-#     -- gil
-case `grep '^ac_cv_func_' config.cache | head -1` in
-
-    # `set' quotes correctly as required by POSIX, so do not add quotes.
-  *{*'="'* )
- sed \
-	-e '/^#/d'     \
-	-e 's/^.[^=]*_cv_/	{ "/' \
-	-e 's/=\${.*=/", /'	      \
-	-e 's/}$/ },/'	      \
-	config.cache | sort
-  ;;
-    # `set' does not quote correctly, so add quotes
-    #     ( cf. configure script's building config.cache )
-   * )
-sed	-e '/^#/d' \
-	-e 's/"/\\"/g' \
-	-e 's/=}$/=""}/' \
-	-e "s/'/\"/g" \
-	-e 's/^.[^=]*_cv_/	{ "/' \
-	-e 's/=${[^=]*="/", "/' \
-	-e 's/=${[^=]*=/", "/' \
-	-e 's/"}$/}/' \
-	-e 's/}$/" },/' \
-	config.cache | sort
-  ;; esac
-
-cat <<EOF
-};
-
-static CONST struct {
-	CONST char *name;
-	CONST char *value;
-} config_defines[] = {
-EOF
-fgrep	'#define' lynx_cfg.h |sort |
-sed	-e 's@	@ @g' \
-	-e 's@  @ @g' \
-	-e 's@[ ]*#define @@' \
-	-e 's@[ ]*/\*.*\*/@@' \
-	-e 's@"$@@' \
-	-e 's@"@@' \
-	-e 's@ @", "@' \
-	-e 's@^@	{ "@' \
-	-e 's@$@" },@'
-cat <<EOF
-};
-
-#endif /* CFG_DEFS_H */
-EOF