This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mknetrel: accept package names with dashes

A small extension I made to mknetrel, to make the tetex-* and the
cross-* packages: the ver(sion) is something like [0-9]+-[0-9]+
at the end; and the base is all except $ver.

Also, would you like to include extra/ scripts for building
cross-binutils and cross-gcc, together with some doco?  I've made some
simple scripts that I'm cleaning up now (it turned out that all pre-
and post- tweaking for cross compiler and binutils is not needed

I was wondering why tooldir and gcc_tooldir are overridden in the
default mknetrel make runs.  That makes it impossible to use dorebuild
() from mknetrel.  Wouldn't it be better to override those from
extra/binutils and extra/gcc (and thus allow setting from
cross-binutils and cross-gcc too?).


2002-07-22  Jan Nieuwenhuizen  <>

	* bin/mknetrel (setvars): Handle package names with dashes for
	setting of $base and $ver.

--- mknetrel.~1.39.~	2002-07-17 16:33:23.000000000 +0200
+++ mknetrel	2002-07-22 19:08:37.000000000 +0200
@@ -62,8 +62,8 @@ setvars() {
-    base=`expr "$package" : '\([^-]*\)-.*$'`
-    ver=`expr "$package" : '[^-]*-\(.*\)$'`
+    ver=`expr "$package" : '.*-\([-.0-9]*-[0-9]*\)'`
+    base=`expr "$package" : "\(.*\)-$ver"`

Jan Nieuwenhuizen <> | GNU LilyPond - The music typesetter       |

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]