Mail Archives: cygwin/2004/10/11/16:07:00
------=_NextPart_000_000F_01C4AFDE.82FCC2A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
you wrote:
> Feel free to improve the particulars of my help text.  The main
> thing is that
> I think some help text is needed.
>
> Andrew.
There is one problem IMO; the script (with the patch) won't allow displaying
help unless there is a matching "generic-build.{tar,tar.bz,tar.gz}" (or some
such, you get the picture I hope) file in the same dir.
Igor: I hacked around some, and ended up short of my intentions; in hope it
"helps" some I've *EDITED down* my changes to the attached patch.
 Feel free to do with it whatever you like. (Non copyrighted material, cgf
BEWARE! ;-)
/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems            --72-->
** mailing list preference; please keep replies on list **
-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--
------=_NextPart_000_000F_01C4AFDE.82FCC2A0
Content-Type: application/octet-stream;
	name="generic-build-script-hannu.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="generic-build-script-hannu.patch"
--- generic-build-script.orig	2004-10-11 20:54:14.000000000 +0200
+++ generic-build-script	2004-10-11 21:47:30.000000000 +0200
@@ -10,6 +10,9 @@
 # Also, if the Makefile rule to run the test suite is not "test", change
 # the definition of ${test_rule} below.
=20
+export src_orig_pkg_name=3D
+export test_rule=3Dtest
+
 # find out where the build script is located
 tdir=3D`echo "$0" | sed 's%[\\/][^\\/][^\\/]*$%%'`
 test "x$tdir" =3D "x$0" && tdir=3D.
@@ -38,7 +42,7 @@
 export FULLPKG=3D${BASEPKG}-${REL}
=20
 # determine correct decompression option and tarball filename
-export src_orig_pkg_name=3D
+
 if [ -e "${src_orig_pkg_name}" ] ; then
   export opt_decomp=3D? # Make sure tar punts if unpack() is not redefined
 elif [ -e ${BASEPKG}.tar.bz2 ] ; then
@@ -54,7 +58,10 @@
   export opt_decomp=3D
   export src_orig_pkg_name=3D${BASEPKG}.tar
 else
-  echo Cannot find original package.
+  echo "${scriptname}: Cannot find original source package."
+  echo "${scriptname}: It should match ${BASEPKG}.{tar.bz2,tar.gz,tgz,tar}=
."
+  echo "${scriptname}: Name determined from \"${scriptname})\""
+  echo "${scriptname}: run \"${scriptname} help\" to get a usage summary"
   exit 1
 fi
=20
@@ -111,7 +118,6 @@
 	TODO \
 "
 export install_docs=3D"`for i in ${install_docs}; do echo $i; done | sort =
-u`"
-export test_rule=3Dtest
 if [ -z "$SIG" ]; then
   export SIG=3D0	# set to 1 to turn on signing by default
 fi
------=_NextPart_000_000F_01C4AFDE.82FCC2A0
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_NextPart_000_000F_01C4AFDE.82FCC2A0--
- Raw text -