trans-coord-devel
[Top][All Lists]
Advanced

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

trans-coord/gnun/server/gnun expand-m4-includes...


From: Pavel Kharitonov
Subject: trans-coord/gnun/server/gnun expand-m4-includes...
Date: Tue, 08 Oct 2013 04:39:37 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Pavel Kharitonov <ineiev>       13/10/08 04:39:36

Removed files:
        gnun/server/gnun: expand-m4-includes.in mailfail 

Log message:
        Remove obsolete files

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/expand-m4-includes.in?cvsroot=trans-coord&r1=1.2&r2=0
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/mailfail?cvsroot=trans-coord&r1=1.7&r2=0

Patches:
Index: expand-m4-includes.in
===================================================================
RCS file: expand-m4-includes.in
diff -N expand-m4-includes.in
--- expand-m4-includes.in       30 Jan 2012 08:49:13 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,38 +0,0 @@
-#! @SED@ -f
-
-# Copyright (C) 2011, 2012 Free Software Foundation, Inc.
-
-# This file is part of GNUnited Nations.
-
-# GNUnited Nations is free software: you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-
-# GNUnited Nations is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
-
-# Expand m4 include statements.
-#
-# Historically GNUN used m4 for that job, but m4 syntax is too rich,
-# and the macro processor doesn't work well with ASCII arts like
-# http://www.gnu.org/graphics/alternative-ascii.html (in particular,
-# it removes some quotes). 
-
-# Separate m4_include directives from the rest text with `\n's
-s/\(\<m4_include(`[^']\+')\)/\n\1\n/g;
-:cycle; t cycle;
-# Select the next part.
-h; s/\n.*$//; t expand;
-# No more parts: just print the rest of the line.
-p; d;
-# If the part contains m4_include directive, expand it
-# recursively; print the result
-:expand; s%^\<m4_include(`\([^']\+\)')address@hidden@ "\1"%e; p;
-# Remove processed part and proceed with the rest.
-g; s/^[^\n]*\n//; b cycle

Index: mailfail
===================================================================
RCS file: mailfail
diff -N mailfail
--- mailfail    7 Jun 2012 14:36:21 -0000       1.7
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,65 +0,0 @@
-#!/bin/bash
-
-# Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
-
-# This file is part of GNUnited Nations.
-
-# GNUnited Nations is free software: you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-
-# GNUnited Nations is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with GNUnited Nations.  If not, see <http://www.gnu.org/licenses/>.
-
-# Usage:
-#
-# ./mailfail [--dry-run] RCPT SUBJECT CMD [ARG ...]
-#
-# Example:
-#
-# ./mailfail address@hidden "Invalid HTML" ./validate article.html
-
-function usage() {
-    echo 1>&2 Usage: ./mailfail [--dry-run] RCPT SUBJECT CMD [ARG ...]
-    exit 1
-}
-
-[ $# -gt 0 ] || usage
-
-# Read arguments
-DRY_RUN=""
-if [ "$1" == "--dry-run" ]; then
-    [ $# -ge 4 ] || usage
-    DRY_RUN="yes"
-    RCPT="$2"
-    SUBJECT="$3"
-    shift 3
-else
-    [ $# -ge 3 ] || usage
-    RCPT="$1"
-    SUBJECT="$2"
-    shift 2
-fi
-
-# Create tempfile and mark it for deletion on exit.
-TMP=`mktemp -t gnun.mailfail.XXXXXX`
-trap "rm -f $TMP" EXIT
-
-# Execute the command and capture it's output
-"$@" &>"$TMP"
-CMDSTATUS=$?
-cat "$TMP"
-
-# Mail the captured output, if needed
-if [ -z "$DRY_RUN" ] && [ "$CMDSTATUS" -ne 0 ]; then
-    mail "$RCPT" -s "$SUBJECT" < "$TMP"
-fi
-
-# Exit with command's original exit status.
-exit $CMDSTATUS



reply via email to

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