m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/checks/Attic/get-them,v [branch-1_4]


From: Eric Blake
Subject: Changes to m4/checks/Attic/get-them,v [branch-1_4]
Date: Sat, 06 Jan 2007 19:56:12 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      07/01/06 19:56:11

Index: checks/get-them
===================================================================
RCS file: /sources/m4/m4/checks/Attic/get-them,v
retrieving revision 1.1.1.1.2.7
retrieving revision 1.1.1.1.2.8
diff -u -b -r1.1.1.1.2.7 -r1.1.1.1.2.8
--- checks/get-them     21 Oct 2006 02:55:56 -0000      1.1.1.1.2.7
+++ checks/get-them     6 Jan 2007 19:56:11 -0000       1.1.1.1.2.8
@@ -1,6 +1,7 @@
 #!/bin/sh
+# -*- AWK -*-
 # Extract all examples from the manual source.
-# Copyright (C) 1992, 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 1992, 2005, 2006, 2007 Free Software Foundation, Inc.
 
 # This script is for use with GNU awk.
 
@@ -13,6 +14,7 @@
   seq = -1;
   count = 0;
   file = "NONE";
+  status = 0;
 }
 
 /address@hidden / {
@@ -34,9 +36,14 @@
 
 /address@hidden ignore$/ {
   getline;
+  status = 0;
   next;
 }
 
+/address@hidden status: / {
+  status = $3;
+}
+
 /address@hidden/, /address@hidden example$/ {
   if (seq < 0)
     next;
@@ -47,11 +54,13 @@
     count++;
     file = sprintf("%03d.%s", count, node);
     printf("dnl @ %s:%d: Origin of test\n"\
-          "dnl @ Copyright (C) 2006 Free Software Foundation\n"\
+          "dnl @ expected status: %d\n"\
+          "dnl @ Copyright (C) 2006, 2007 Free Software Foundation\n"\
           "dnl @ This file is free software; the Free Software Foundation\n"\
           "dnl @ gives unlimited permission to copy and/or distribute it\n"\
           "dnl @ with or without modifications, as long as this notice\n"\
-          "dnl @ is preserved.\n", FILENAME, NR) > file;
+          "dnl @ is preserved.\n", FILENAME, NR, status) > file;
+    status = 0;
     next;
   }
   if ($0 ~ /address@hidden example$/) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]