From a376c4d6951be8ec2877f1e091990d5987bab7cf Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 25 Apr 2003 13:18:15 +0000 Subject: [PATCH] Ready to ship. --- Makefile | 4 ++-- README | 5 +++-- imgsizer.xml | 44 ++++++++++++++++++++++---------------------- 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/Makefile b/Makefile index b72b78b..b5accb1 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ imgsizer.1: imgsizer.xml xmlto man imgsizer.xml SOURCES = READ.ME Makefile \ - imgsizer imgsizer.xml imgsizer.lsm \ + imgsizer imgsizer.xml \ test-before.html test-converted.html test.png tnhd2.jpg imgsizer-$(VERS).tar.gz: $(SOURCES) imgsizer.1 @@ -40,7 +40,7 @@ dist: imgsizer-$(VERS).tar.gz # Make RPMs. You need to be root to make this work RPMROOT=/usr/src/redhat -RPM = rpm +RPM = rpmbuild RPMFLAGS = -bb --target noarch rpm: imgsizer-$(VERS).tar.gz cp imgsizer-$(VERS).tar.gz $(RPMROOT)/SOURCES; diff --git a/README b/README index dca5fa2..6ff75db 100644 --- a/README +++ b/README @@ -13,7 +13,8 @@ Files in this directory: imgsizer.lsm -- Linux Software Map description. Put imgsizer on your execution path and the man page in a man source -directory somewhere. That's it. +directory somewhere. `make install' will do the right hing on a Linux box. +That's it. You will need either identify(1) from the ImageMagick tools or rdjpgcom(1) and a modern version of file(1) to make this work. If you @@ -25,7 +26,7 @@ Usual open-source terms -- copy, use, and redistribute as you like, don't take my name off it, and clearly mark any modified versions. Fixes and enhancements cheerfully accepted. Enjoy! -- esr - http://www.tuxedo.org/~esr + http://www.catb.org/~esr diff --git a/imgsizer.xml b/imgsizer.xml index b1f067d..f182541 100644 --- a/imgsizer.xml +++ b/imgsizer.xml @@ -54,7 +54,7 @@ -Directory where aboslute image filenames (i.e, ones which contain +Directory where absolute image filenames (i.e, ones which contain a leading "/") may be found. @@ -76,7 +76,6 @@ to load much faster. - This script will try create such attributes for any IMG tag that lacks them. It will correct existing HEIGHT and WIDTH tags unless either contains a percent (%) sign, in which case the existing dimensions @@ -89,17 +88,19 @@ arguments, it will attempt to transform each file in place. Each argument file is not actually modified until the script completes a successful conversion pass. -The <directory> option sets the DocumentRoot, which images with an -absolute filename (i.e., ones which contain a leading "/") may be found. -If none is specified, the DocumentRoot defaults to the current working -directory. +The <directory> option sets the +DocumentRoot, which images with an absolute filename (i.e., ones which +contain a leading "/") may be found. If none is specified, the +DocumentRoot defaults to the current working directory. The -n (no-overwrite) opion prevents the program from overwriting existing width and height tags if both are present. -Additional options may also be specified in the environmental variable -"IMGSIZER". For example, to avoid typing "imgsizer /var/www/docs" each -time imgsizer is invoked, you might tell sh (or one of its descendants): +Additional options may also be specified in the environmental +variable "IMGSIZER". For example, to avoid typing "imgsizer + /var/www/docs" each time +imgsizer is invoked, you might tell sh (or one of +its descendants): IMGSIZER="-d /var/www/docs"; export IMGSIZER @@ -111,22 +112,21 @@ IMGSIZER="-d /var/www/docs"; export IMGSIZER setenv IMGSIZER "-d /var/www/docs" -This script is written in Python, and thus requires a Python interpreter -on the host system. It also requires either the +This script is written in Python, and thus requires a Python +interpreter on the host system. It also requires either the identify1 -utility distributed in the open-source ImageMagick suite of image-display -and manipulation tools, or a modern -version of +utility distributed in the open-source ImageMagick suite of +image-display and manipulation tools, or a modern version of file1 -and +and rdjpgcom1. -These utilities are used to extract sizes from the images; -imgsizer -itself has no knowledge of graphics formats. The script will handle any -image format known to +These utilities are used to extract sizes from the images; +imgsizer itself has no knowledge of graphics +formats. The script will handle any image format known to identify1 -including PNG, GIF, JPEG, XBM, XPM, PostScript, BMP, TIFF, and anything else -even remotely likely to show up as an inline image. +including PNG, GIF, JPEG, XBM, XPM, PostScript, BMP, TIFF, and +anything else even remotely likely to show up as an inline +image. @@ -138,7 +138,7 @@ used to do has been made unnecessary by smarter logic. AUTHOR Originally created by Eric S. Raymond <esr@thyrsus.com>. Additional code contributed by Erik Rossen and Michael C. Toren <michael@toren.net>. -For updates, see <http://www.tuxedo.org/~esr> +For updates, see <http://www.catb.org/~esr> SEE ALSO -- 2.43.0