Home > NoiseTools > package.m

# package

## PURPOSE

## SYNOPSIS

This is a script file.

## DESCRIPTION

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

## SOURCE CODE

    0001 date_string=date;
    0002
    0003 % update version file
    0004 eval(['!echo function y=nt_version, y=\''',date_string,'\''\; >nt_version.m']);
    0005
    0006 % html documentation
    0007 cd ..; m2html('mfiles', {'NoiseTools', 'NoiseTools/TEST', 'NoiseTools/EXAMPLE', 'NoiseTools/private'}, 'htmlDir', 'NoiseTools/doc'); cd NoiseTools
    0008 eval('!chmod -R +w doc');
    0009
    0010 % copy all the stuff into a directory (excluding DATA JUNK and PACKAGE)
    0011 if 7==exist(['PACKAGE/NoiseTools']);
    0012     eval(['!rm -rf PACKAGE/NoiseTools']);
    0013 end
    0014 eval(['!mkdir PACKAGE/NoiseTools']);
    0015 eval(['!cp nt_*.m ', 'PACKAGE/NoiseTools']);
    0016 eval(['!cp -r EXAMPLE ', 'PACKAGE/NoiseTools']);
    0017 eval(['!cp INSTALL.txt ', 'PACKAGE/NoiseTools']);
    0018 eval(['!cp -r TEST ', 'PACKAGE/NoiseTools']);
    0019 eval(['!cp -r COMPAT ', 'PACKAGE/NoiseTools']);
    0020 eval(['!cp -r private ', 'PACKAGE/NoiseTools']);
    0021 eval(['!cp -r doc ', 'PACKAGE/NoiseTools']);
    0022
    0023 % make archive zip files
    0024 zip(['PACKAGE/NoiseTools'], {'NoiseTools'}, 'PACKAGE');
    0025 eval(['!cp PACKAGE/NoiseTools.zip PACKAGE/NoiseTools_',date_string, '.zip']);
    0026
    0027 % delete the directory, keep only the archive
    0028 eval(['!rm -rf PACKAGE/NoiseTools']);