Mercurial > forge
changeset 3620:6f944e649952 octave-forge
add compilation of "units" package
author | goffioul |
---|---|
date | Wed, 11 Jul 2007 14:37:14 +0000 |
parents | 1e754c78b177 |
children | 0e9e343f2da4 |
files | admin/Windows/msvc/run_compilation.sh |
diffstat | 1 files changed, 28 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/admin/Windows/msvc/run_compilation.sh Wed Jul 11 14:32:33 2007 +0000 +++ b/admin/Windows/msvc/run_compilation.sh Wed Jul 11 14:37:14 2007 +0000 @@ -904,3 +904,31 @@ else echo "installed" fi + +######### +# units # +######### + +echo -n "checking for units... " +if test ! -f "$tbindir/units.exe"; then + echo "no" + download_file units-1.86.tar.gz ftp://ftp.gnu.org/gnu/units/units-1.86.tar.gz + echo -n "decompressing units... " + (cd "$DOWNLOAD_DIR" && tar xfz units-1.86.tar.gz) + cp libs/units-1.86.diff "$DOWNLOAD_DIR/units-1.86" + echo "done" + echo -n "compiling units... " + (cd "$DOWNLOAD_DIR/units-1.86" && + patch -p1 < units-1.86.diff + nmake -f Makefile.dos + cp units.exe units.dat "$tbindir") >&5 2>&1 + rm -rf "$DOWNLOAD_DIR/units-1.86" + if test ! -f "$tbindir/units.exe"; then + echo "failed" + exit -1 + else + echo "done" + fi +else + echo "installed" +fi