From: fred Date: Tue, 26 Mar 2002 23:10:31 +0000 (+0000) Subject: lilypond-1.3.42 X-Git-Tag: release/1.5.59~1702 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=844994dad2286db8f4171ce5fbbbfdd59c3b1f8d;p=lilypond.git lilypond-1.3.42 --- diff --git a/VERSION b/VERSION index 7c8fb20926..11e6788b01 100644 --- a/VERSION +++ b/VERSION @@ -1,7 +1,7 @@ PACKAGE_NAME=LilyPond MAJOR_VERSION=1 MINOR_VERSION=3 -PATCH_LEVEL=41 +PATCH_LEVEL=42 MY_PATCH_LEVEL= # use the above to send patches: MY_PATCH_LEVEL is always empty for a diff --git a/buildscripts/make-cygwin-cross.sh b/buildscripts/make-cygwin-cross.sh index e6277959e0..73a1a40990 100644 --- a/buildscripts/make-cygwin-cross.sh +++ b/buildscripts/make-cygwin-cross.sh @@ -26,33 +26,45 @@ # config section ################ -target=cygwin -#target=mingw +TARGET_OS=cygwin +#TARGET_OS=mingw32 -if [ $target = cygwin ]; then +if [ $TARGET_OS = cygwin ]; then ROOT=/usr/src/cygwin-net-485 - TARGET_ARCH=i686-pc-cygwin + TARGET_ARCH=i686 + TARGET_VENDOR=pc else ROOT=/usr/src/mingw-net-485 - TARGET_ARCH=i386-pc-mingw32 + TARGET_ARCH=i386 + TARGET_VENDOR=pc fi +TARGET_PLATFORM=$TARGET_ARCH-$TARGET_VENDOR-$TARGET_OS + +ARCH=`uname -m` +OS=`uname -s | tr '[A-Z]' '[a-z]'` +VENDOR=gnu +PLATFORM=$ARCH-$VENDOR-$OS + +#CROSS_TARGET_PLATFORM=$ARCH-x-$TARGET_PLATFORM +CROSS_TARGET_PLATFORM=$PLATFORM-x-$TARGET_PLATFORM +cto=$OS-x-cygwin +tp=i686-cygwin + PREFIX=$ROOT/usr NATIVE_ROOT=/Cygnus NATIVE_PREFIX=$NATIVE_ROOT/usr +CROSS_ROOT=$NATIVE_ROOT/$cto +CROSS_PREFIX=$CROSS_ROOT/usr # urg DEVEL=/home/fred distdir=$DEVEL/WWW/lilypond/gnu-windows/lily-w32 #distdir=/tmp -SOURCE_PATH=$DEVEL/usr/src/releases:$DEVEL/usr/src/redhat/SRPMS - -ARCH=`uname -m` -OS=`uname -s | tr '[A-Z]' '[a-z]'` -HOST=$ARCH-gnu-$OS -CROSS_TARGET_ARCH=$ARCH-x-$TARGET_ARCH -cta=$ARCH-x-cygwin -ta=i686-cygwin +CYGWIN_SOURCE=$DEVEL/sourceware.cygnus.com/pub/cygwin/private/cygwin-net-485 +cygwin_dirs=`/bin/ls -d1 $CYGWIN_SOURCE/*` +cygwin_source_path=`echo $CYGWIN_SOURCE $cygwin_dirs | sed s'/\$/:/g'` +SOURCE_PATH=$DEVEL/usr/src/releases:$DEVEL/usr/src/redhat/SRPMS:$cygwin_source_path cygwin_binary=cygwin-20000301.tar.gz mingw_binary=bin-crtdll-2000-02-03.tar.gz @@ -68,12 +80,28 @@ MINWG_DLL=mingwc10-net-485.dll cross_rpm=" binutils-19990818 +gcc-2.95.2 bison flex -gcc-2.95.2 " -#guile_after_rpm='ln -f $NATIVE_PREFIX/bin/i686-redhat-cygwin-guile-config $NATIVE_PREFIX/bin/i686-pc-cygwin-guile-config' +# binutils installs ok, but forgets these two +binutils_after_rpm=' +cd $CROSS_PREFIX/$TARGET_PLATFORM/bin \; +ln -f ../../bin/$TARGET_PLATFORM-objdump objdump \; +ln -f ../../bin/$TARGET_PLATFORM-objcopy objcopy \; +mv -f ld ld-in-path-breaks-libtool +' +# burp. gcc doesn't install any of these +gcc_after_rpm=' +cd $CROSS_PREFIX/$TARGET_PLATFORM/bin \; +ln -f ../../bin/$TARGET_PLATFORM-gcc cc \; +ln -f ../../bin/$TARGET_PLATFORM-gcc gcc \; +ln -f ../../bin/$TARGET_PLATFORM-c++ c++ \; +ln -f ../../bin/$TARGET_PLATFORM-g++ g++ +' + +guile_after_rpm='cp -f $NATIVE_PREFIX/bin/*guile-config $CROSS_PREFIX/$TARGET_PLATFORM/bin' lilypond_version=@TOPLEVEL_VERSION@ @@ -82,6 +110,7 @@ rx-1.5 zlib-1.1.3 db-2.7.7 guile-1.3.4 +bash-2.03 rpm-3.0.4 lilypond-$lilypond_version " @@ -127,17 +156,18 @@ build () name=`echo $package | sed 's/-.*//'` if [ $type = "cross" ]; then - target_arch=$CROSS_TARGET_ARCH - a=$cta + target_platform=$CROSS_TARGET_PLATFORM + a=$cto else - target_arch=$TARGET_ARCH - a=$ta + target_platform=$TARGET_PLATFORM + a=$tp fi - rpm_package=`find_path $name*.rpm "$topdir/RPMS/$cta:$topdir/RPMS/$ta"` + rpm_package=`find_path $name*.rpm "$topdir/RPMS/$cto:$topdir/RPMS/$tp"` if [ "$rpm_package" != "" ]; then echo "$rpm_package: package exists" - echo "$rpm_package: just updating db" + #echo "$rpm_package: refreshing installation only" + echo "$rpm_package: just updating rpm database" rpm -ivv --justdb --ignoreos --ignorearch --nodeps --force\ --dbpath $NATIVE_ROOT/var/lib/rpm \ $topdir/RPMS/$a/$name*.rpm @@ -148,15 +178,15 @@ build () found=`find_path $package*src.rpm` if [ "$found" != "" ]; then rpm --root $NATIVE_ROOT -ivv $found || exit 1 - rpm --target=$target_arch -ba SPECS/$name*.spec || exit 1 + rpm --target=$target_platform -ba SPECS/$name*.spec || exit 1 else tarball=`/bin/ls -d1 SOURCES/$package*tar.gz 2>/dev/null | head -1` - if [ "SPECS/$name.spec" != "" ] && [ "$tarball" != "" ]; then - rpm --target=$target_arch -ba SPECS/$name.spec || exit 1 + if [ "$name.spec" != "" ] && [ "$tarball" != "" ]; then + rpm --target=$target_platform -ba SPECS/$name.spec || exit 1 else found=`find_path $package*tar.gz` if [ "$found" != "" ]; then - rpm --target=$target_arch -ta $found || exit 1 + rpm --target=$target_platform -ta $found || exit 1 else echo "$package: no such rpm or tarball" exit 1 @@ -168,6 +198,9 @@ build () rpm -ivv --ignoreos --ignorearch --nodeps --force\ --dbpath $NATIVE_ROOT/var/lib/rpm \ $topdir/RPMS/$a/$name*.rpm + #urg + name_after_rpm="`expand $name _after_rpm`" + `eval $name_after_rpm` || exit 1 ) } @@ -184,9 +217,19 @@ mkdir -p $ROOT if [ ! -d $PREFIX/bin ]; then mkdir -p $PREFIX cd $PREFIX - mkdir -p include - mkdir -p $TARGET_ARCH - cd $TARGET_ARCH && ln -s ../include . + + ## is this still necessary? + mkdir -p include lib + mkdir -p $TARGET_PLATFORM + cd $TARGET_PLATFORM && ln -s ../include . + + mkdir -p $CROSS_PREFIX/$TARGET_PLATFORM + cd $CROSS_PREFIX/$TARGET_PLATFORM + ln -s $NATIVE_PREFIX/{include,lib} . + #ln -s $NATIVE_PREFIX/{include,lib} . + #ln -s $NATIVE_PREFIX/include . + #ln -s $CROSS_PREFIX/bin . + cd $ROOT found=`find_path $cygwin_binary` if [ "$found" = "" ]; then @@ -195,14 +238,15 @@ if [ ! -d $PREFIX/bin ]; then fi tar xzf $found # urg, bug in gcc's cross-make configuration - mkdir -p $PREFIX/lib/gcc-lib/$TARGET_ARCH/2.95.2 + mkdir -p $PREFIX/lib/gcc-lib/$TARGET_PLATFORM/2.95.2 + mkdir -p $CROSS_PREFIX/lib/gcc-lib/$TARGET_PLATFORM/2.95.2 else echo "$PREFIX: already exists" echo "$cygwin_binary: skipping" fi # mingw -if [ ! -d $PREFIX/$TARGET_ARCH ]; then +if [ ! -d $PREFIX/$TARGET_PLATFORM ]; then cd $PREFIX found=`find_path $mingw_binary` if [ "$found" = "" ]; then @@ -211,11 +255,11 @@ if [ ! -d $PREFIX/$TARGET_ARCH ]; then fi tar xzf $found - mkdir -p $PREFIX/lib/gcc-lib/$TARGET_ARCH/2.95.2 + mkdir -p $PREFIX/lib/gcc-lib/$TARGET_PLATFORM/2.95.2 rm -f include mkdir -p $PREFIX/i386-mingw32/include - ln -s $PREFIX/i386-mingw32 $TARGET_ARCH - ln -s $PREFIX/$TARGET_ARCH/include . + ln -s $PREFIX/i386-mingw32 $TARGET_PLATFORM + ln -s $PREFIX/$TARGET_PLATFORM/include . fi rm -f $NATIVE_ROOT @@ -235,26 +279,63 @@ ncs=`eval echo $native_config_site` rm -f $ncs mkdir -p `dirname $ncs` cat > $ncs < $base_macros < $base_macros <> $cross_macros <> $native_macros <> $native_macros < $native_rpm_dir/cygwin.prov < $NATIVE_PREFIX/lib/rpm/cygwin.prov < $native_rpm_dir/cygwin.req < $NATIVE_PREFIX/lib/rpm/cygwin.req < $NATIVE_PREFIX/bin/fix-suffixes < $distdir/setup.sh < \$dll/cygwin1.dll -here=\`pwd\` -cd \$ROOT/.. && (PATH=\$dll \$here/rpm2cpio \$here/rpm*.rpm ) | cpio -ivmd -PATH=\$dll rpm --root=\$ROOT --initdb -cd \$here -for i in RPMS/$ta/*.rpm; do - PATH=\$dll rpm -ivv --ignoreos --ignorearch --nodeps --force\ - --dbpath \$ROOT/var/lib/rpm \ - \$i +gunzip rpm.gz || exit 1 +#dll=\$ROOT/net-485 +#mkdir -p \$dll +#gzip -dc cygwin.dll.gz > \$dll/cygwin1.dll +## this won't work: must be done outside of cygwin +#old_dll=\`which cygwin1.dll\` +#mv -f \$old_dll \$old_dll.orig\$\$ +#gunzip cygwin1.dll.gz +#cp -f cygwin1.dll \$old_dll +echo > rpmrc +mkdir -p \$ROOT/var/lib +mkdir -p \$ROOT/bin +rem # touch \$ROOT/bin/rpm \$ROOT/bin/rpm.exe +echo > \$ROOT/bin/rpm; echo > \$ROOT/bin/rpm.exe +./rpm --root \$ROOT --rcfile rpmrc --initdb +./rpm --root \$ROOT --rcfile rpmrc --nodeps --ignorearch --ignoreos -Uhv \\ + RPMS/$tp/rpm-*.$tp.rpm \\ + RPMS/$tp/*.$tp.rpm done EOF cat > $distdir/setup.bat < newdll; echo \$wdll \$wdll.orig\$\$ > olddll' +if not errorlevel 0 goto nobash +rem # mv -f \$old_dll \$old_dll.orig\$\$ +rem # gunzip cygwin1.dll.gz +rem # cp -f cygwin1.dll \$old_dll +copy < olddll +copy < newdll bash setup.sh -if errorlevel 0 goto exit +if not errorlevel 0 goto nobash +goto :exit +:nobash @echo "setup.bat: can't find bash" -@echo "setup.bat: please install usertools from" -@echo "setup.bat: http://sourceware.cygnus.com/cygwin/" +rem # @echo "setup.bat: please install usertools from" +rem # @echo "setup.bat: http://sourceware.cygnus.com/cygwin/" :exit EOF @@ -449,20 +602,14 @@ cat > $distdir/lilypond.sh < $distdir/midi2ly.sh < $distdir/lilypond.bat < $distdir/midi2ly.bat <