[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trans-coord/gnun/server/gnun ChangeLog Makefile...
From: |
Kaloian Doganov |
Subject: |
trans-coord/gnun/server/gnun ChangeLog Makefile... |
Date: |
Sun, 16 Nov 2008 10:33:57 +0000 |
CVSROOT: /sources/trans-coord
Module name: trans-coord
Changes by: Kaloian Doganov <kaloian> 08/11/16 10:33:57
Modified files:
gnun/server/gnun: ChangeLog Makefile.am validate-html.in
Log message:
* Makefile.am (edit): Enabled variable substitution for
PACKAGE_NAME, PACKAGE_VERSION, and PACKAGE_BUGREPORT.
* validate-html.in: Added support for `--version' and `--help'
command line options.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.109&r2=1.110
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/Makefile.am?cvsroot=trans-coord&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/validate-html.in?cvsroot=trans-coord&r1=1.3&r2=1.4
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -b -r1.109 -r1.110
--- ChangeLog 7 Nov 2008 21:59:50 -0000 1.109
+++ ChangeLog 16 Nov 2008 10:33:56 -0000 1.110
@@ -1,3 +1,10 @@
+2008-11-16 Kaloian Doganov <address@hidden>
+
+ * Makefile.am (edit): Enabled variable substitution for
+ PACKAGE_NAME, PACKAGE_VERSION, and PACKAGE_BUGREPORT.
+ * validate-html.in: Added support for `--version' and `--help'
+ command line options.
+
2008-11-07 Yavor Doganov <address@hidden>
* configure.ac: Check for egrep, needed for the `report' target,
Index: Makefile.am
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- Makefile.am 6 Nov 2008 21:35:31 -0000 1.3
+++ Makefile.am 16 Nov 2008 10:33:56 -0000 1.4
@@ -29,6 +29,9 @@
dist_pkglibexec_SCRIPTS = make-prototype mailfail
edit = sed \
+ -e 's|@address@hidden|$(PACKAGE_NAME)|g' \
+ -e 's|@address@hidden|$(PACKAGE_VERSION)|g' \
+ -e 's|@address@hidden|$(PACKAGE_BUGREPORT)|g' \
-e 's|@address@hidden|$(pkgdatadir)|g' \
-e 's|@address@hidden|$(prefix)|g' \
-e 's|@address@hidden|$(pkglibexecdir)|g'
Index: validate-html.in
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/validate-html.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- validate-html.in 6 Nov 2008 21:35:32 -0000 1.3
+++ validate-html.in 16 Nov 2008 10:33:56 -0000 1.4
@@ -17,11 +17,46 @@
# You should have received a copy of the GNU General Public License
# along with GNUnited Nations. If not, see <http://www.gnu.org/licenses/>.
+function version () {
+cat <<EOF
+validate-html (@PACKAGE_NAME@) @PACKAGE_VERSION@
+Copyright (C) 2008 Free Software Foundation, Inc.
+You may redistribute copies of @PACKAGE_NAME@
+under the terms of the GNU General Public License.
+For more information about these matters, see the file named COPYING.
+EOF
+}
+
+function usage () {
+cat <<EOF
+Usage: validate-html OPTION | FILE
+
+Options:
+ --version Just print version info and return
+ --help Print this usage information message
+
+Report bugs to @PACKAGE_BUGREPORT@
+EOF
+}
+
set -e
set -o pipefail
+case "$1" in
+ --help )
+ usage
+ exit 0
+ ;;
+ --version )
+ version
+ exit 0
+ ;;
+ * )
+ ;;
+esac
+
if [ $# -ne 1 ]; then
- echo 1>&2 Error: The script requires a FILE as argument.
+ echo 1>&2 Error: FILE argument is required. See --help for details.
exit 1
fi