This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
mknetrel: accept package names with dashes
- From: Jan Nieuwenhuizen <janneke at gnu dot org>
- To: cygwin-apps at cygwin dot com
- Date: Mon, 22 Jul 2002 19:24:00 +0200
- Subject: mknetrel: accept package names with dashes
- Organization: Jan at Appel
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