#!sh # mkrelease # # Makes a new release archive containing all files required to install/update MiniGL. # # Copyright (C) 2009 by Hans de Ruiter, all rights reserved # # Version 0.1 2009/11/26 # proj_name=MiniGL arc_basename=minigl_lib # Rebuild the release version #make clean make # Get the release details vernum=`version FILE "${proj_name}.library" | cut -d " " -f2` datestring=$(gdate +%Y%m%d) echo $datestring # Create the release archive archivename=$arc_basename-$vernum.lha tempdir=RAM:$proj_name makedir $tempdir copy env:sys/def_drawer.info $tempdir.info copy *.library $tempdir copy README $tempdir copy README.info $tempdir copy License.txt $tempdir mkdir $tempdir/SDK mkdir $tempdir/SDK/local mkdir $tempdir/SDK/local/common mkdir $tempdir/SDK/local/newlib copy lib/#?.a $tempdir/SDK/local/newlib/lib svn export include $tempdir/SDK/local/common/include mkdir $tempdir/demos copy demos/#?.c $tempdir/demos copy demos.info $tempdir f_list=$(ls demos/*.c) for i in $f_list; do demofile=${i%.c} demofile=$(basename $demofile) if [ -f demos/bin/$demofile ]; then copy demos/bin/$demofile $tempdir/demos copy env:sys/def_tool.info $tempdir/demos/$demofile.info fi done copy demos/bin/data $tempdir/demos/data # The glow and glow2 demos shouldn't be included because they use features that don't exist yet if [ ! -f glow]; then rm $tempdir/demos/glow.c fi if [ ! -f glow2]; then rm $tempdir/demos/glow2.c fi lha -r -a a $archivename $tempdir $tempdir.info lha -a a $archivename AutoInstall delete $tempdir ALL delete $tempdir.info # Create a backup directory containing the .debug files for this release debugdirname=$proj_name-$vernum-$datestring-debug makedir $debugdirname copy *.debug $debugdirname