Home > NoiseTools > zz_package.m

# zz_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 eval('!echo if nargout==0\; disp\([\''version \'', y]\)\; disp\(\''check for latest version at http//audition.ens.fr/adc/NoiseTools/\''\)\; clear y\; end\; >>nt_version.m')
    0006
    0007 % html documentation
    0008 cd ..; m2html('mfiles', {'NoiseTools', 'NoiseTools/TEST', 'NoiseTools/EXAMPLE', 'NoiseTools/private'}, 'htmlDir', 'NoiseTools/doc'); cd NoiseTools
    0009 eval('!chmod -R +w doc');
    0010
    0011 % copy all the stuff into a directory (excluding DATA JUNK and PACKAGE)
    0012 if 7==exist(['PACKAGE/NoiseTools']);
    0013     eval(['!rm -rf PACKAGE/NoiseTools']);
    0014 end
    0015 eval(['!mkdir PACKAGE/NoiseTools']);
    0016 eval(['!cp nt_*.m ', 'PACKAGE/NoiseTools']);
    0017 eval(['!cp -r EXAMPLES ', 'PACKAGE/NoiseTools']);
    0018 eval(['!cp INSTALL.txt ', 'PACKAGE/NoiseTools']);
    0019 eval(['!cp -r TEST ', 'PACKAGE/NoiseTools']);
    0020 eval(['!cp -r COMPAT ', 'PACKAGE/NoiseTools']);
    0021 eval(['!cp -r private ', 'PACKAGE/NoiseTools']);
    0022 eval(['!cp -r doc ', 'PACKAGE/NoiseTools']);
    0023
    0024 % make archive zip files
    0025 zip(['PACKAGE/NoiseTools'], {'NoiseTools'}, 'PACKAGE');
    0026 eval(['!cp PACKAGE/NoiseTools.zip PACKAGE/NoiseTools_',date_string, '.zip']);
    0027
    0028 % push to web server
    0029 disp('pushing to web server: ');
    0030 eval(['!scp WEB/index.html WEB/overview.html adechevei@audition-backend:audition/adc/NoiseTools/']);
    0031 eval(['!ssh adechevei@audition-backend "cd audition/adc/NoiseTools/src; rm -rf NoiseTools/*" ']);
    0032 eval(['!scp -r PACKAGE/NoiseTools.zip PACKAGE/NoiseTools_',...
    0033     date_string, '.zip adechevei@audition-backend:audition/adc/NoiseTools/src']);
    0034 disp('uncompressing on web server:');
    0035 eval(['!ssh adechevei@audition-backend "cd audition/adc/NoiseTools/src; unzip -o NoiseTools.zip" ']);
    0036 % delete the directory, keep only the archive
    0037 eval(['!rm -rf PACKAGE/NoiseTools']);
    0038
    0039 %{
    0040 eval(['!scp -r PACKAGE/NoiseTools_*.zip adechevei@audition-backend:audition/adc/NoiseTools/src']);
    0041 %}
    0042