changeset 813:0e0c5d811589

[project @ 1994-10-15 00:22:00 by jwe]
author jwe
date Sat, 15 Oct 1994 00:22:00 +0000
parents 0aac647c3f97
children 8caf71319a4d
files doinstall.sh
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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