mknetrel: accept package names with dashes

Jan Nieuwenhuizen janneke@gnu.org
Mon Jul 22 12:06:00 GMT 2002


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
anymore!).

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?).

Jan.


2002-07-22  Jan Nieuwenhuizen  <janneke@gnu.org>

	* 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() {
 
     package_name="$package"
     package_src="$package"
-    base=`expr "$package" : '\([^-]*\)-.*$'`
-    ver=`expr "$package" : '[^-]*-\(.*\)$'`
+    ver=`expr "$package" : '.*-\([-.0-9]*-[0-9]*\)'`
+    base=`expr "$package" : "\(.*\)-$ver"`
     src="$here/src/$package"
     build=$here/build/$package
     inst=$here/inst/$package


-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org



More information about the Cygwin-apps mailing list