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"
67 # Post install clean up
69 CYGWIN_LIB=$PACKAGE_ROOTDIR/distfiles/winnt/cygwin1.dll
70 if [ ! -e $CYGWIN_LIB ]; then
71 echo "Unable to locate $CYGWIN_LIB"
76 # copy cygwin lib into bin
78 cp $CYGWIN_LIB $distdir/bin
80 ASH_EXE=$PACKAGE_ROOTDIR/distfiles/winnt/ash.exe
81 if [ ! -e $ASH_EXE ]; then
82 echo "Unable to locate $ASH_EXE"
89 cp $ASH_EXE $distdir/bin
91 GUILE_SCM=$PACKAGE_ROOTDIR/distfiles/winnt/ice-9
92 if [ ! -e $GUILE_SCM ]; then
93 echo "Unable to locate $GUILE_SCM"
98 # copy guile init files into share/lilypond
100 echo "copy $GUILE_SCM to $distdir/share/lilypond"
101 cp -r $GUILE_SCM $distdir/share/lilypond
104 # Rename python files to <filename>.py
106 mv $distdir/bin/ly2dvi $distdir/bin/ly2dvi.py
107 mv $distdir/bin/convert-mudela $distdir/bin/convert-mudela.py
108 mv $distdir/bin/mudela-book $distdir/bin/mudela-book.py
111 # copy man documentation to doc directory
114 cp Documentation/man/out/*.html $distdir/doc
117 # copy web documentation to web directory
120 for i in index.html guile.patch angels.ly
122 cp Documentation/ntweb/out/$i $distdir/web || exit 1
129 $ZIP_CMD $ZIP_FILE $name
130 echo "Wrote $ZIP_FILE"