#!/bin/sh #First let's be sure sword-svn is up to date so we can get the latest version #information echo echo "*** updating latest/sword-svn" echo cd ../latest/sword-svn; svn update cd ../.. SWORDVER=`grep AC_INIT latest/sword-svn/configure.ac|cut -f2 -d' '|cut -f1 -d,` TMPDIR=sword-win32-$SWORDVER rm -rf $TMPDIR mkdir $TMPDIR echo echo "*** generating latest biblecs source zip" echo svn export http://crosswire.org/svn/biblecs/branches/BCB5 $TMPDIR/biblecs svn export http://crosswire.org/svn/icu-sword/trunk $TMPDIR/icu-sword zip -r $TMPDIR.zip $TMPDIR rm -f latest/SOURCE/sword-win32-*.zip mv $TMPDIR.zip latest/SOURCE/ echo echo "*** updating locales.d and uilocales.d from sword-svn" echo "*** and latest biblecs source respectively" echo # sucks these are dup'd rm -f latest/uilocales.d/* rm -f latest/Windows/uilocales.d/* cp -a $TMPDIR/biblecs/stage/uilocales.d/* latest/uilocales.d/ cp -a $TMPDIR/biblecs/stage/uilocales.d/* latest/Windows/uilocales.d/ # sucks these are dup'd rm -f latest/locales.d/* rm -f latest/Windows/locales.d/* cp -a latest/sword-svn/locales.d/* latest/locales.d/ cp -a latest/sword-svn/locales.d/* latest/Windows/locales.d/ rm -rf $TMPDIR echo echo "*** updating CD splash version info" echo "*** WARNING: We should check size of version string as setting to a" echo "*** string of a different size will likely corrupt the exe" echo scripts/sfk rep latest/cdstartup.exe /`strings latest/cdstartup.exe |grep ^Version| cut -f2 -d' '`/$SWORDVER/ -yes scripts/sfk rep latest/cdstartup.exe /`strings latest/cdstartup.exe |grep ^Version| cut -f2 -d'('|cut -f1 -d')'`/`date +%d-``date +%B|cut -c1-3``date +-%Y`/ -yes echo echo "*** copying latest PPC software" echo cp /home/swordreader/html/SwordReader.exe latest/SwordReader/ cp /home/swordreader/html/SRInstaller.zip latest/SwordReader/ echo echo "*** copying latest win32 utilities" echo rm -f latest/utils/win32/* cp /home/sword/ftp/utils/win32/* latest/utils/win32/ echo echo "*** copying latest sword-win32 standalone installers" echo rm -f latest/PACKAGES/WIN32/* cp /home/sword/ftp/frontend/win32/v1.7/sword-win32-$SWORDVER.exe latest/PACKAGES/WIN32/ echo echo "*** cleaning up" echo chgrp -R swordiso latest chmod -R g+w latest echo echo "*** WARNING: This script expects the latest biblecs NSIS packages to" echo " already be built and available on the ftp site." echo " (/pub/sword/frontend/win32/v1.5/sword-win32-$SWORDVER.exe)" echo " you can scroll up a bit and see if there was an error" echo " trying to copy this." echo echo "*** WARNING: This script DOES NOT update the latest biblecs binaries" echo echo " sword.exe" echo " InstallManager.exe" echo " icu*.dll" echo echo " in latest/Windows/" echo echo " Be sure to do this manually!!!" echo echo "*** WARNING: the iso size is probably above at standard CD image capacity." echo echo " You should probably du | sort -n and remove stuff, like utils/win32/oldstuff" echo echo " And it would be nice to think of a way to automate these" echo " last steps and remove these WARNINGs"