/[emacs]/emacs/mac/make-package
ViewVC logotype

Diff of /emacs/mac/make-package

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17.4.1 by miles, Fri Apr 4 06:20:42 2003 UTC revision 1.17.4.2 by miles, Tue Oct 14 22:51:22 2003 UTC
# Line 313  if test "$with_app" == "yes"; then Line 313  if test "$with_app" == "yes"; then
313    fi    fi
314  fi  fi
315    
316    compver=powerpc-apple-darwin`uname -r`
317    
318  if test "$self_contained" = "yes"; then  if test "$self_contained" = "yes"; then
319      # Move shared files down to Resources directory      # Move shared files down to Resources directory
320      mv $installprefix/share/emacs/$version/* $installprefix      mv $installprefix/share/emacs/$version/* $installprefix
321      rm -rf $installprefix/share      rm -rf $installprefix/share
322      # These directories might remain in Resources      # These directories might remain in Resources
323      mv $installprefix/bin $installprefix/../MacOS/bin      mv $installprefix/bin $installprefix/../MacOS/bin
324      mv $installprefix/libexec $installprefix/../MacOS/libexec      mv $installprefix/libexec/emacs/$version/$compver $installprefix/../MacOS/libexec
325      # Make the application binary a hard link      # Make the application binary a hard link
326      rm $installprefix/../MacOS/Emacs      rm $installprefix/../MacOS/Emacs
327      ln $installprefix/../MacOS/bin/emacs $installprefix/../MacOS/Emacs      ln $installprefix/../MacOS/bin/emacs $installprefix/../MacOS/Emacs
# Line 383  echo "CompressedSize ${compressedSize}" Line 385  echo "CompressedSize ${compressedSize}"
385  cat ${sizesfile}  cat ${sizesfile}
386    
387  echo "Creating Disc Image"  echo "Creating Disc Image"
388  ## Allocate an extra 5000 sectors (about 2.5 mg)  ## From hdiutil man page, a sector is 512k.  Allocate an extra 5% for
389  ## Note a sector appears to be 512k  ## directories and partition tables.
390  sectorsAlloced=`echo 2*${compressedSize}+20|bc`  sectorsAlloced=`echo 2.1*${compressedSize}|bc`
391  hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced}  hdiutil create -ov ${builddir}/mac/EmacsRW -sectors ${sectorsAlloced}
392  ## Need to format the disc image before mounting  ## Need to format the disc image before mounting
393  mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1`  mountLoc=`hdid -nomount ${builddir}/mac/EmacsRW.dmg | grep HFS | cut -f1`
# Line 423  rm ${builddir}/mac/EmacsRW.dmg Line 425  rm ${builddir}/mac/EmacsRW.dmg
425  echo "Cleaning up the staging directory"  echo "Cleaning up the staging directory"
426  rm -rf ${builddir}/mac/Emacs.pkg ${removable_build_dir}  rm -rf ${builddir}/mac/Emacs.pkg ${removable_build_dir}
427    
428    # arch-tag: 1b631d0d-9fde-4f71-80c0-33e0e5815515
429  ### make-package ends here  ### make-package ends here

Legend:
Removed from v.1.17.4.1  
changed lines
  Added in v.1.17.4.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26