2004-02-24 Alan Miles * templates/generic-readme : Changed the runtime requirements string from "" to: "" allowing better text replacement using the values generated by depend() function. The generic build script will replace this string in its function "readmelist()". * templates/generic-readme : Changed the build requirements string from "" to: "" allowing better text replacement using values from the generic build script, which will replace this string in its function "readmelist()". * templates/generic-readme : Replaced the listed files under the "Files included" section with the string "". The generic build script will replace the string "" with a sorted list of files which will comprise the binary distribution. The generic build scripts "readmelist()" function does this. * templates/generic-readme : Changed the port notes string from "Other information" to: "" allowing better text replacement using values from the generic build script, which will replace this string in its function "readmelist()". * templates/generic-readme : Changed the older release string from "--1" to: "--" since the release number may not be 1. The generic build script will analyse the setup.hint file and set the values of "" and "", substituting these values. If the script cannot find the setup.hint file, these values become values of "" and "" respectively.Again the generic build script's "readmelist()" and "hintfiledata()" functions do the substitutions and extract the data from the setup.hint file. * templates/generic-build-script : Added defaults and instructions to Package maintainers regarding some new constants: export SHORTDESC="" export OTHERRUNTIME=" " export OTHERBUILD=" " export OTHERPORT="" export OLDERVER="${VER}" # Set the default to the "current" package's version number export OLDERREL="${REL}" # Set the default to the "current" package's release number export MAINTNAME="" export MAINTEMAIL="" The "readmelist()" function substitutes these values into the binary package README. Note: Function "hintfiledata()" overrides the values of SHORTDESC, setting it to the setup.hint file's ldesc value, and obtains the OLDERVER, OLDERREL values from the setup.hint if it contains the "prev: " value * templates/generic-build-script : Added function "hintfiledata()" which parses and extracts the ldesc: value and prev: values, if the "${srcdir}/CYGWIN-PATCHES/setup.hint" file exists, altering the SHORTDESC, OLDERVER, OLDERREL values respectively. * templates/generic-build-script : Added function "readmelist()" which examines all the files in "${instdir}", sorting them and then replacing the "" string with the lines. This replacement exploits sed's "e command", which allows one to pipe input from a shell command into pattern space. The command does the following replacements: (a) string "" becomes the value of "${PKG}" (b) string "" becomes the value of "${VER}" (c) string "" becomes the value of "${REL}" (d) string "" becomes the value of "${PKG}" (e) string "" becomes the value of "${SHORTDESC}" (f) string " " becomes the value of "${OTHERBUILD}" (g) string "" becomes the value of "${OTHERPORT}" (h) string "" becomes the value of "${OLDERVER}" (i) string "" becomes the value of "${OLDERREL}" (j) string "" becomes the value of "${MAINTNAME}" (k) string "" becomes the value of "${MAINTMAIL}" (l) string " " becomes the value of sorted "depends()" function. * templates/generic-build-script : Added the call to function "readmelist()" in the "all" list * templates/generic-build-script : Fixed a problem in the functions "strip()", "mkpatch()", and "depend()" when there are no dll's or exes (the find returns no files) - xargs would try to execute strip or cygcheck/cygpath with no arguments and these commands would complain about missing arguments. The fix is to add the -r parameter to xargs, which prevents xargs from executing its parameters if there is no input. * templates/generic-build-script : Altered references in install() from: "${instdir}${prefix}/share/doc/Cygwin/${BASEPKG}.README" to: "${PkgReadMe}" thus allowing only one definition of the README - "readmelist()" uses "${PkgReadMe}"