CVS: sml-dist/config install.sh,1.47,1.48

Matthias Blume <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj.commits
Message-ID <[email protected]>
Update of /cvsroot/smlnj/sml-dist/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2588/config

Modified Files:
	install.sh 
Log Message:
added some script support for Mac OS X package installer

Index: install.sh
===================================================================
RCS file: /cvsroot/smlnj/sml-dist/config/install.sh,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** install.sh	14 Jan 2005 23:53:18 -0000	1.47
--- install.sh	18 May 2005 16:59:22 -0000	1.48
***************
*** 13,16 ****
--- 13,22 ----
  #
  
+ if [ x$1 = xnolib ] ; then
+     nolib=true
+ else
+     nolib=false
+ fi
+ 
  if [ x${INSTALL_QUIETLY} = xtrue ] ; then
      export CM_VERBOSE
***************
*** 336,339 ****
--- 342,354 ----
      export CM_DIR_ARC
      CM_DIR_ARC=$ORIG_CM_DIR_ARC
+     # now re-dump the heap image:
+     vsay "$this: Re-creating a (customized) heap image..."
+     "$BINDIR"/sml @CMredump "$ROOT"/sml
+     cd "$ROOT"
+     if [ -r sml.$HEAP_SUFFIX ]; then
+ 	mv sml.$HEAP_SUFFIX "$HEAPDIR"
+     else
+ 	complain "$this !!! Unable to re-create heap image (sml.$HEAP_SUFFIX)."
+     fi
  else
      "$CONFIGDIR"/unpack "$ROOT" "$BOOT_ARCHIVE"
***************
*** 398,408 ****
  # Now do all the rest using the precompiled installer:
  #
! echo $this: Installing other libraries and programs:
! export ROOT INSTALLDIR CONFIGDIR BINDIR
! if "$BINDIR"/sml -m \$smlnj/installer.cm
! then
!     vsay $this: Installation complete.
! else
!     complain "$this: !!! Installation of libraries and programs failed."
  fi
  
--- 413,425 ----
  # Now do all the rest using the precompiled installer:
  #
! if [ $nolib = false ] ; then
!     echo $this: Installing other libraries and programs:
!     export ROOT INSTALLDIR CONFIGDIR BINDIR
!     if "$BINDIR"/sml -m \$smlnj/installer.cm
!     then
! 	vsay $this: Installation complete.
!     else
! 	complain "$this: !!! Installation of libraries and programs failed."
!     fi
  fi
  



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.