summaryrefslogtreecommitdiff
path: root/libguile/guile-snarf.awk.in
diff options
context:
space:
mode:
authorGreg J. Badros <gjb@cs.washington.edu>2000-02-10 19:45:10 +0000
committerGreg J. Badros <gjb@cs.washington.edu>2000-02-10 19:45:10 +0000
commit11a5232f86bdaa4bde2177b96b7ba2457e670daa (patch)
tree3980df6281a374f691b278e07c441fcb72b9556a /libguile/guile-snarf.awk.in
parent720e8692474b9ab8491727bd33a30fb1a8fb18cf (diff)
downloadguile-11a5232f86bdaa4bde2177b96b7ba2457e670daa.tar.gz
* guile-snarf.awk.in: Tweak to work with Sun/HP awk, removed some
dead code. Patch from Michael Livshin. * guile-doc-snarf.in: Tweak to work with Sun/HP sh. Patch from Michael Livshin.
Diffstat (limited to 'libguile/guile-snarf.awk.in')
-rw-r--r--libguile/guile-snarf.awk.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/libguile/guile-snarf.awk.in b/libguile/guile-snarf.awk.in
index da20af493..e99ed18f8 100644
--- a/libguile/guile-snarf.awk.in
+++ b/libguile/guile-snarf.awk.in
@@ -1,12 +1,10 @@
-#!/usr/bin/awk -f
# Written by Greg J. Badros, <gjb@cs.washington.edu>
# 12-Dec-1999
BEGIN { FS="|";
- filename = ARGV[1]; ARGV[1] = "";
- dot_x_file = filename; dot_doc_file = filename;
- sub(/\..*$/,".x",dot_x_file);
- sub(/\..*$/,".doc",dot_doc_file);
+ dot_doc_file = ARGV[1]; ARGV[1] = "";
+ ARGC = 0;
+ std_err = "/dev/stderr";
# be sure to put something in the files to help make out
print "";
printf "" > dot_doc_file;
@@ -51,7 +49,7 @@ BEGIN { FS="|";
# now args is an array of the arguments
# args[1] is the formal name of the first argument, etc.
if (numargs != numactuals && !registering)
- { print location ":*** `" copy "' is improperly registered as having " numactuals " arguments" > /dev/stderr; }
+ { print location ":*** `" copy "' is improperly registered as having " numactuals " arguments" > std_err; }
print " \n" copy (registering?")":"") > dot_doc_file ; }
/@@@/,/@!!!.*$/ { copy = $0;