# Patch: Autogenerate lsm entry

Petter Reinholdtsen (pere@hungry.com)
Wed, 28 Apr 1999 00:47:38 +0200

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Petter Reinholdtsen: "Patch: dll cleanup and bugfix"
- Previous message: Petter Reinholdtsen: "Patch: sane_init() may fail"

Here is a small change relative to SANE 1.0.1. It is a new target for
make to generate the lsm entry with updated distribution size and
date.

diff --new-file -ur sane-1.0.1/ChangeLog sane-1.0.1-pere/ChangeLog
--- sane-1.0.1/ChangeLog Mon Apr 19 18:21:33 1999
+++ sane-1.0.1-pere/ChangeLog Wed Apr 28 00:42:00 1999
@@ -1,3 +1,8 @@
+1999-04-28 Petter Reinholdtsen <pere@td.org.uit.no>
+
+ * Makefile.in (lsm) sane.lsm: New target to generate Linux
+ Software Map (LSM) entry from template.
+
1999-04-19 David Mosberger-Tang <David.Mosberger@acm.org>
* Version 1.0.1 released.
diff --new-file -ur sane-1.0.1/Makefile.in sane-1.0.1-pere/Makefile.in
--- sane-1.0.1/Makefile.in Fri May 8 08:48:16 1998
+++ sane-1.0.1-pere/Makefile.in Wed Apr 28 00:38:27 1999
@@ -5,6 +5,9 @@
top_srcdir = @top_srcdir@
top_builddir = .
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
+
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
@@ -36,6 +39,15 @@
all: all-recursive
+$(PACKAGE)-$(VERSION).lsm: $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).lsm
+ ( cat $(PACKAGE).lsm | \
+ sed -e "s|_DATE_|`date +%d%b%y`|g" \
+ -e "s|_VERSION_|$(VERSION)|g" \
+ -e "s|_T_S_|`find $(PACKAGE)-$(VERSION).tar.gz -printf \"%3k\"`|g"\
+ -e "s|_L_S_|`find $(PACKAGE).lsm -printf "%3k"`|g" > \
+ $(PACKAGE)-$(VERSION).lsm \
+ )
+lsm: $(PACKAGE)-$(VERSION).lsm
install: install-recursive
$(MKDIR) $(includedir)/sane
diff --new-file -ur sane-1.0.1/sane.lsm sane-1.0.1-pere/sane.lsm
--- sane-1.0.1/sane.lsm Thu Jan 1 01:00:00 1970
+++ sane-1.0.1-pere/sane.lsm Wed Apr 28 00:40:26 1999
@@ -0,0 +1,27 @@
+Begin3
+Title: SANE
+Version: _VERSION_
+Entered-date: _DATE_
+Description: SANE (Scanner Access Now Easy) is a universal scanner
+ interface and comes complete with documentation and several
+ frontends and backends.
+Keywords: camera, scanner, Abaton, Apple, Agfa, Artec, Canon, Epson,
+ HP, Kodak DC25 & DC210, Microtek, Mustek, Nikon CoolScan,
+ Polaroid Digital Microscope Camera, PINT, Connectix QuickCam,
+ Ricoh, Siemens, Tamarack, UMAX, network server & client,
+ Java API & client
+Author: David.Mosberger@acm.org (David Mosberger-Tang)
+ (see AUTHORS for complete list)
+Maintained-by: David.Mosberger@acm.org (David Mosberger-Tang)
+Primary-site: ftp.mostang.com /pub/sane
+ _T_S_ kB sane-_VERSION_.tar.gz
+ _L_S_ kB sane-_VERSION_.lsm
+Alternate-site: tsx-11.mit.edu /pub/linux/packages/sane
+ sunsite.unc.edu /pub/Linux/apps/graphics/capture
+ gd.tuwien.ac.at /hci/sane/
+Platforms: AIX, Digital Unix, HP Apollo Domain/OS, FreeBSD, HP-UX, IRIX,
+ Linux (Alpha, m68k, SPARC, x86), NetBSD, OpenStep (x86),
+ SCO OpenServer 5.x (x86), OS/2, Solaris (SPARC, x86), SunOS
+Copying-policy: GPL (programs), relaxed GPL (libraries), and public domain
+ (SANE standard)
+End

    --
    ##>  Petter Reinholdtsen <##    | pere@td.org.uit.no
    http://www.hungry.com/~pere/ O- | Go Mozilla, go! Go!

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

     Next message: Petter Reinholdtsen: "Patch: dll cleanup and bugfix"
     Previous message: Petter Reinholdtsen: "Patch: sane_init() may fail"