[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trans-coord/gnun/prep/gnun ChangeLog validate-html
From: |
Yavor Doganov |
Subject: |
trans-coord/gnun/prep/gnun ChangeLog validate-html |
Date: |
Wed, 06 Feb 2008 11:13:15 +0000 |
CVSROOT: /sources/trans-coord
Module name: trans-coord
Changes by: Yavor Doganov <yavor> 08/02/06 11:13:15
Modified files:
gnun/prep/gnun : ChangeLog validate-html
Log message:
Instead of hanging, fail if no file is supplied as argument.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/prep/gnun/ChangeLog?cvsroot=trans-coord&r1=1.29&r2=1.30
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/prep/gnun/validate-html?cvsroot=trans-coord&r1=1.2&r2=1.3
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/prep/gnun/ChangeLog,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- ChangeLog 6 Feb 2008 10:52:08 -0000 1.29
+++ ChangeLog 6 Feb 2008 11:13:14 -0000 1.30
@@ -2,6 +2,7 @@
* validate-html (FILE): Do not define it.
Fix a typo in the sed expression.
+ Instead of hanging, fail if no file is supplied as argument.
2008-02-06 Kaloian Doganov <address@hidden>
Index: validate-html
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/prep/gnun/validate-html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- validate-html 6 Feb 2008 10:52:08 -0000 1.2
+++ validate-html 6 Feb 2008 11:13:15 -0000 1.3
@@ -1,5 +1,12 @@
#!/bin/bash
+set -e
+
+if [ $# -ne 1 ]; then
+ echo 1>&2 Error: The script requires a FILE as argument.
+ exit 1
+fi
+
ROOT=`dirname $0`/../..
cat $1 | sed "s/<\!--#include virtual=\"\/\?\(.*\)\" -->/include(\`\1')/g" \