# HG changeset patch # User jwe # Date 782180520 0 # Node ID 0e0c5d811589ae4fc3fad9c54eb924b32d8f7735 # Parent 0aac647c3f97c45ca837c15824fbbf1281ade801 [project @ 1994-10-15 00:22:00 by jwe] diff -r 0aac647c3f97 -r 0e0c5d811589 doinstall.sh --- a/doinstall.sh Sat Oct 15 00:07:14 1994 +0000 +++ b/doinstall.sh Sat Oct 15 00:22:00 1994 +0000 @@ -8,7 +8,7 @@ # The University of Texas at Austin # ask octave to tell us the version number -version=`./octave -v 2>/dev/null | sed -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q` +version=`./octave -v 2>/dev/null | awk '/version/ { print $NF }'` if test -z "$version" then @@ -115,6 +115,7 @@ Binaries: $bindir Function files: $fcnfiledir + Demo images: $imagedir Info files: $infodir Man page: $mandir @@ -144,13 +145,22 @@ echo "installing function files in $fcnfiledir" ( cd scripts - ../mkinstalldirs `find . -type d | sed "s,^,$fcnfiledir/,"` + ../mkinstalldirs `find . -type d | sed -e 's,^\./,,' -e "s,^,$fcnfiledir/,"` for f in `find . -name '*.m'` do cp $f $fcnfiledir/$f chmod 644 $fcnfiledir/$f done ) +echo "installing image files in $imagedir" +( cd scripts + ../mkinstalldirs `find . -type d | sed -e 's,^\./,,' -e "s,^,$imagedir/,"` + for f in `find . -name '*.img'` + do + cp $f $iamgedir/$f + chmod 644 $imagedir/$f + done ) + echo "installing info files in $infodir" for f in doc/octave.info* do