2 # package-zip32.sh --- make a windoze formated distribution
7 echo "Usage: $0 PACKAGE_SOURCEDIR"
16 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
17 if [ "x$MY_PATCH_LEVEL" != "x" ]; then
18 VERSION=$VERSION.$MY_PATCH_LEVEL
21 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
22 name=$package-$VERSION
28 export PACKAGE_ROOTDIR
31 RELEASE_DIR="$PACKAGE_ROOTDIR/bin.releases/winnt"
32 ZIP_FILE="$RELEASE_DIR/$name.bin.zip"
35 if [ ! -e $RELEASE_DIR ]; then
42 # Maybe we can get away without reconfiguring
44 # rm -f ${srcdir}/config.cache
45 # PYTHON=${PYTHON:-python} ${srcdir}/configure --prefix=${distdir} \
54 #make -C Documentation info
56 if ! make install ; then
57 echo "make install failed"
61 #if ! make -C Documentation/man WWW ; then
62 # echo "make -C documentation/man WWW failed"
66 if ! make -C Documentation/ntweb WWW ; then
67 echo "make -C documentation/ntweb WWW failed"
72 # Post install clean up
74 CYGWIN_LIB=$PACKAGE_ROOTDIR/distfiles/winnt/cygwin1.dll
75 if [ ! -e $CYGWIN_LIB ]; then
76 echo "Unable to locate $CYGWIN_LIB"
81 # copy cygwin lib into bin
83 cp $CYGWIN_LIB $distdir/bin
85 ASH_EXE=$PACKAGE_ROOTDIR/distfiles/winnt/ash.exe
86 if [ ! -e $ASH_EXE ]; then
87 echo "Unable to locate $ASH_EXE"
94 cp $ASH_EXE $distdir/bin
96 GUILE_SCM=$PACKAGE_ROOTDIR/distfiles/winnt/ice-9
97 if [ ! -e $GUILE_SCM ]; then
98 echo "Unable to locate $GUILE_SCM"
103 # copy guile init files into share/lilypond
105 echo "copy $GUILE_SCM to $distdir/share/lilypond"
106 cp -r $GUILE_SCM $distdir/share/lilypond
109 # Rename python files to <filename>.py
111 mv $distdir/bin/ly2dvi $distdir/bin/ly2dvi.py
112 mv $distdir/bin/convert-mudela $distdir/bin/convert-mudela.py
113 mv $distdir/bin/mudela-book $distdir/bin/mudela-book.py
116 # copy man documentation to doc directory
119 #cp Documentation/man/out/*.html $distdir/doc
122 # copy web documentation to web directory
125 for i in index.html guile-1.3.4-gnu-windows.patch angels.ly
127 cp Documentation/ntweb/out/$i $distdir/web || exit 1
134 $ZIP_CMD $ZIP_FILE $name
135 echo "Wrote $ZIP_FILE"