From: <jh...@us...> - 2010-12-29 20:38:44
|
Revision: 1517 http://freedos.svn.sourceforge.net/freedos/?rev=1517&view=rev Author: jhall1 Date: 2010-12-29 20:38:38 +0000 (Wed, 29 Dec 2010) Log Message: ----------- Removed old library that read contents from an LSM file. No longer used in the Install version 4. Removed Paths: ------------- install/trunk/lib/lsm/file.lsm install/trunk/lib/lsm/lsm-temp install/trunk/lib/lsm/lsm.h install/trunk/lib/lsm/lsm_desc.c install/trunk/lib/lsm/lsm_desc.h install/trunk/lib/lsm/makefile.bc install/trunk/lib/lsm/makefile.wat Deleted: install/trunk/lib/lsm/file.lsm =================================================================== --- install/trunk/lib/lsm/file.lsm 2010-12-29 20:37:56 UTC (rev 1516) +++ install/trunk/lib/lsm/file.lsm 2010-12-29 20:38:38 UTC (rev 1517) @@ -1,14 +0,0 @@ -Begin3 -Title: Foo -Version: 1.0 -Entered-date: 20 July 1998 -Description: Prints the text "Hello world" to the screen. -Keywords: hello world foo -Author: Jim Hall <jh...@is...> -Maintained-by: Jim Hall <jh...@is...> -Primary-site: ftp://ftp.isd.net/jhall1/freedos/foo10s.zip (1k) -Alternate-site: ftp://ftp.foo.com/pub/foo/foo10s.zip (1k) -Original-site: ftp://ftp.isd.net/jhall1/freedos/foo10s.zip (1k) -Platforms: DOS (Borland C), UNIX (gcc) -Copying-policy: GPL -End Deleted: install/trunk/lib/lsm/lsm-temp =================================================================== --- install/trunk/lib/lsm/lsm-temp 2010-12-29 20:37:56 UTC (rev 1516) +++ install/trunk/lib/lsm/lsm-temp 2010-12-29 20:38:38 UTC (rev 1517) @@ -1,257 +0,0 @@ -============================================================================= -Linux Software Map Entry Template Release: 09AUG94 -============================================================================= - -The LSM is a directory of information about each of the software -packages available via FTP for the Linux operating system. It is meant -to be a public information resource. All entries have been entered by -volunteers all over the world via email using the template below. New -versions will appear first on sunsite.unc.edu and will be announced in -the newsgroup comp.os.linux.announce . Discussions pertaining to the -LSM will be held in the newsgroup comp.os.linux.misc . Any questions or -comments can be entered in comp.os.linux.misc or sent to me directly at -Aa...@ex.... - -As of the end of October, 1996, the LSM is being maintained by Aaron -Scrab. The Linux Software Map was originally conceived and maintained -by Jeff Kopmanis. From the end of July, 1994, to September, 1996, it -was maintained by Lars Wirzenius. We owe Jeff and Lars a lot for -making LSM the asset it is. - - -============================================================================= -Instructions -============================================================================= - -Any new packages or updates to old entries should be entered in the -template below and sent to ls...@ex... with the subject 'add'. -Each release of the LSM will have the current template as part of the -package. Any changes to the template will be made and released at -sunsite.unc.edu. - -*PLEASE* use the entry template at the end when submitting information. -It has been designed so that all you have to do is fill in the blanks -and send it in as is. Your entry will be read into the database -directly from your email response with little if any hand manipulation. - -DO NOT RENAME FIELDS. DO NOT REMOVE THE BEGIN OR END MARKERS. There -are no longer any limits on the fields lengths, but please try to be -short. - -Complete as many fields as possible. I strongly encourage developers to -complete all the fields, as its more descriptive. You must fill in at -least the Title, Version, Entered-date, Description, and Primary-site fields. - -Make any corrections to an existing entry that are necessary. The -initial data came from a variety of sources, and is not at all assumed -to be correct. Remember to update the Entered-date field if you update -an existing entry. - -Thank you VERY much for your time and enthusiasm. Your contribution -will help to ensure that the Linux Software Map will continue to be a -trusted Linux resource. - - -============================================================================= -Lsmtool -============================================================================= - -Lars Wirzenius wrote a small (and still fragile) tool to make it -easier to browse and update the LSM. It will only work on a new style -database (09AUG94). Find it as -ftp://sunsite.unc.edu/pub/Linux/search/lsmtool-0.6.tar.gz. Source only. - - -============================================================================= -As of the 09AUG94 version... -============================================================================= - -The 09AUG94 version of the template is a radical change from the syntax -of earlier versions. It is not upward compatible. There are several -reasons for the change: - - * no limits on line lengths - * less awkward multi-line format - * nicer method (for the user) for specifying the ftp site and - files - * one entry for all files comprising a package - -The new version is identified by the "Begin3" line that starts it. -Earlier versions had "Begin" and "Begin3". Old versions will be -accepted for a while, but please use the newest one to make things -easier for me. - - -============================================================================= -The LSM Entry Form -============================================================================= - -The general syntax is now similar to that of netnews headers, i.e., a -keyword (at the beginning of a line), a colon (with no spaces separating -it from the keyword), and text that may be continued to the next line by -starting each continuing line with whitespace (space, tab). Empty lines -are also allowed (unlike netnews). Since fields may be several lines -long, there is no longer a separate keyword for each line (we now have -one "Description" keyword, where the older versions had "Desc1", -"Desc2", and so on). - -There are no limits on the line lenght or the number of lines for one -keyword, but please try to be short, especially in the description. -Don't put the whole README into the description, usually half a dozen -of lines is more than enough. Please keep each line (including keyword) -below 80 characters for maximal viewing comfort. Use a tab width of 8 -spaces, or don't use tabs at all. - -Mandatory fields: Title, Version, Entered-date, Description, Primary-site. - -Descriptions of the fields (an empty form is included at the end; use that -to fill in). - -PLEASE NOTE THAT THE "Begin3" AND "End" LINES ARE ESSENTIAL. IF YOU -REMOVE THEM, THE ENTRY WILL BE USELESS AND WILL REQUIRE MANUAL EDITING -BY ME AND I DON'T WANT TO DO THAT. - -Note that case is significant. - -Begin3 -Title: The name of the package. Please use the same title for - the LSM entry of each version, so as to make it easier - to find entries for new versions of packages that already - have one in the data base. -Version: Version number or other designation. Use a date if - nothing else is appropriate. -Entered-date: Date of when the LSM entry was last modified. Note that - you should fill in both Version and Entered-date. -Description: Short description of the package. -Keywords: A short list of carefully selected keywords that describe - the package. -Author: Original author(s) of package. In RFC822 format (i.e., - something that will fit into a From: or To: header of a - normal Internet mail message). Preferred format: - - mai...@si...p (Full name) - - Other formats will be converted to this format, if time - and energy of LSM maintainer will allow it. - - Multiple persons may be given, one per line. -Maintained-by: Maintainer(s) of Linux port. Same format as Author. -Primary-site: A specification of on which site, in which directory, - and which files are part of the package. First line - gives site and base directory, the rest give the sizes - and names of all files. Names are either relative to - the base directory, or full pathnames. If the ftp - site does not use Unix style pathname syntax, then - the full pathname must be given every time. The pathname - must not contain spaces. Example: - - Primary-site: sunsite.unc.edu /pub/Linux/docs - 10kB lsm-1994.01.01.tar.gz - 997 lsm-template - 22 M /pub/Linux/util/lsm-util.tar.gz - - The file size may be given in bytes (no suffix), kilobytes - (k, kb), or megabytes (M, MB). The suffix may be separated - with spaces, and may be in upper case or lower case. The - size can be left off. - - For very large packages that are contained within - one directory (say, a distribution), only the directory - need be listed. Adding a trailing slash makes it clear - that it is a directory. - - The filename should be the final location, not an - "incoming" directory. If you don't know the final - location, at least make a good guess (since files _will_ - be moved from incoming, it is not a good guess). -Alternate-site: One alternate site may be given. It should not be a - site that mirrors the primary site (these are best - found from a list of mirror sites), but should be one - that maintained separately. More sites carrying the - package can be found using Archie. The syntax is - the same as for Primary-site, but if there is only one - line (i.e., no files are specified), they are assumed - to be the same as for Primary-site. - - Alternate-site: ftp.funet.fi /pub/OS/Linux/doc/lsm - Alternate-site: foo.bar /pub/lsm - 11 kB lsm-1994-01-01.cpio.Z - 0.1 kB lsm-template.Z - 22 MB lsm-util.tar.gz - -Original-site: The original package, if this is a port to Linux. Syntax - is as in Primary-site, with the same handling of missing - filenames as in Alternate-site. -Platforms: Software or hardware that is required, if unusual. A - C compiler or floppy disk would not be unusual, but a - Python interpreter or tape drive probably would be. If - the requirements are evident from the description, it - need not be repeated here. -Copying-policy: Copying policy. Use "GPL" for GNU Public License, - "BSD" for the Berkeley style of copyright, "Shareware" - for shareware, and some other description for other - styles of copyrights. If the use or copying requires - payment, it must be indicated. -End - - -============================================================================= -IAFA -============================================================================= - -The IAFA (Internet Anonymous Ftp Archives) have a form similar to LSM -for specifying similar information about files. The 24JUL94 version of -LSM is much more close to the IAFA format, but is still not quite the -same. - -Straight IAFA is not suitable for LSM. It only allows one filename -(many packages consist of several files). It is also awkward because it -specifies different formats for records for different types of files. - -(This information is based on a draft version of a description on the -iafa format from the iafa work group. The draft is dated 92.06.10; it -was the newest I could find, but if there are any newer ones with -significant changes, please send me information.) - -However, this revision of the LSM format tries to be as close to iafa as -possible. The major differences are: - - * Package-name, Document-name, and Dataset-name are - converted to one Primary-site (with site and location taken - from Maintained-at, if given, or filled in by LSM maintainer). - * Field names "Author" and "Revision-date" converted to "Authors" - and "Version". - * Other fields are added to the database as is. - * Added fields: primary-site, alternate-site, original-site, - entered-date, checked-date, and checked-status. - * an LSM template _must_ begin with "Begin3" and end with "End", - with both delimiters being the only things on the line (except - for trailing whitespace), and must be at the beginning of the - line. This is to make it easier to automatically extract them - from news articles and such. - * fields in an LSM entry can be in whatever order - -We only support iafa records for packages, documents and datasets. - - - -============================================================================= -Empty Template -============================================================================= - -Cut this out, fill it in, send it to 'ls...@ex...' with the subject 'add'. - -Begin3 -Title: -Version: -Entered-date: -Description: -Keywords: -Author: -Maintained-by: -Primary-site: -Alternate-site: -Original-site: -Platforms: -Copying-policy: -End Deleted: install/trunk/lib/lsm/lsm.h =================================================================== --- install/trunk/lib/lsm/lsm.h 2010-12-29 20:37:56 UTC (rev 1516) +++ install/trunk/lib/lsm/lsm.h 2010-12-29 20:38:38 UTC (rev 1517) @@ -1,29 +0,0 @@ -/* $Id$ */ - -/* Copyright (C) 1998 Jim Hall, jh...@is... */ - -/* - This program 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 2 of the License, or - (at your option) any later version. - - This program 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 this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - -#ifndef LSM_H -#define LSM_H - -#ifdef __WATCOMC__ -#include "screen.h" -#endif -#include "lsm_desc.h" - -#endif /* LSM_H */ Deleted: install/trunk/lib/lsm/lsm_desc.c =================================================================== --- install/trunk/lib/lsm/lsm_desc.c 2010-12-29 20:37:56 UTC (rev 1516) +++ install/trunk/lib/lsm/lsm_desc.c 2010-12-29 20:38:38 UTC (rev 1517) @@ -1,141 +0,0 @@ -/* $Id$ */ - -/* Copyright (C) 1998 Jim Hall, jh...@is... */ - -/* - This program 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 2 of the License, or - (at your option) any later version. - - This program 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 this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - -#ifdef __WATCOMC__ -#include <screen.h> -#endif -#include <stdio.h> -#include <string.h> /* for strncmp */ -#include <ctype.h> /* for isspace */ - -#ifndef __WATCOMC__ -#ifdef unix -#include "conio.h" -#else -#include <conio.h> -#endif /* unix */ -#endif - -#define STRLEN 80 - -int -lsm_description (int y0, int x0, int maxlines, const char *lsmfile) -{ - /* Displays the Description lines in a Linux Software Map - file (.lsm file). Returns the number of lines that were - printed. */ - - /* lsmfile is the name of a '.lsm' file. */ - - FILE *stream; - char s[STRLEN]; - int len; - int i, n; - int is_desc_line; - int is_blank; - - /* Open the file */ - - stream = fopen (lsmfile, "r"); - if (stream == NULL) { - return 0; - } - - /* Read the lsmfile until done */ - - n = 0; - is_desc_line = 0; - - while (fgets (s, STRLEN, stream) != NULL) { - /* If the line is empty, this is the end of the desc */ - - for (len = 0, is_blank = 1; s[len] != '\0'; len++) { - if (!isspace(s[len])) { - is_blank = 0; - } - } /* for */ - - /* See if another paragraph starts here. An LSM paragraph is - ended can be ended with a blank line, or by starting a new - paragraph. Always begin with a keyword in column 0. */ - - if (is_blank) { - is_desc_line = 0; - } - - if (!isspace(s[0])) { - is_desc_line = 0; - } - - /* Look for the 'Description:' flag. Assumes that we are case- - sensitive, and that the flag appears at the start of the - string. */ - - if (strncmp (s, "Description:", 12) == 0) { - is_desc_line = 1; - } - - /* If this is part of the description, print it */ - - if (is_desc_line) { - gotoxy (x0, y0 + n); /* conio */ - - /* I need to use a hack here instead of cputs(s) because we - appear to be printing a circle (ASCII 09h) instead of blank - space. It's not a perfect hack, but it works. */ - - /* The following should be replaced by cputs(s); */ - /* cputs (s); /* conio */ - - for (i = 0; s[i] != '\0'; i++) - { - switch (s[i]) - { - case '\t': - cputs (" "); /* print spaces instead */ - break; - default: - putch (s[i]); - } /* switch ch */ - } /* for i */ - - /* As a hack, we won't refresh the screen unless we really need to. - So we'll refresh the screen with cputs, but not with putch */ - -#ifdef unix /* hack added 12/27/99 jhall */ - refresh(); /* curses */ -#endif /* unix */ - - n++; - - if (n >= maxlines) - { - fclose (stream); - return (n); - } - } - - } /* while */ - - /* Close the file */ - - fclose (stream); - return (n); -} Deleted: install/trunk/lib/lsm/lsm_desc.h =================================================================== --- install/trunk/lib/lsm/lsm_desc.h 2010-12-29 20:37:56 UTC (rev 1516) +++ install/trunk/lib/lsm/lsm_desc.h 2010-12-29 20:38:38 UTC (rev 1517) @@ -1 +0,0 @@ -int lsm_description (int y0, int x0, int maxlines, const char *lsmfile); Deleted: install/trunk/lib/lsm/makefile.bc =================================================================== --- install/trunk/lib/lsm/makefile.bc 2010-12-29 20:37:56 UTC (rev 1516) +++ install/trunk/lib/lsm/makefile.bc 2010-12-29 20:38:38 UTC (rev 1517) @@ -1,12 +0,0 @@ -# this is a DOS makefile - -CC=tcc -CFLAGS=-c -ml -DNDEBUG - -all: lsm_desc.obj - -lsm_desc.obj : lsm_desc.c - $(CC) $(CFLAGS) lsm_desc.c - -clean: - del *.obj Deleted: install/trunk/lib/lsm/makefile.wat =================================================================== --- install/trunk/lib/lsm/makefile.wat 2010-12-29 20:37:56 UTC (rev 1516) +++ install/trunk/lib/lsm/makefile.wat 2010-12-29 20:38:38 UTC (rev 1517) @@ -1,12 +0,0 @@ -# this is a DOS makefile - -CC=wcl -CFLAGS=-c -ml -DNDEBUG -fo=.obj -bt=DOS -oasl -zq -i=../../include - -all: lsm_desc.obj - -lsm_desc.obj : lsm_desc.c - $(CC) $(CFLAGS) lsm_desc.c - -clean: - del *.obj This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |