Skip to content
Snippets Groups Projects
Commit f35e04aa authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use hdutil instead of open to bypass the license agreement

parent 6bf876e6
No related branches found
No related tags found
No related merge requests found
...@@ -107,16 +107,18 @@ curl -O http://geuz.org/gmsh/bin/MacOSX/gmsh-${GMSH}-MacOSX.dmg ...@@ -107,16 +107,18 @@ curl -O http://geuz.org/gmsh/bin/MacOSX/gmsh-${GMSH}-MacOSX.dmg
curl -O http://geuz.org/getdp/bin/MacOSX/getdp-${GETDP}-MacOSX64c.tgz curl -O http://geuz.org/getdp/bin/MacOSX/getdp-${GETDP}-MacOSX64c.tgz
mv gmsh-${GMSH}-MacOSX.dmg /tmp mv gmsh-${GMSH}-MacOSX.dmg /tmp
mv getdp-${GETDP}-MacOSX64c.tgz /tmp mv getdp-${GETDP}-MacOSX64c.tgz /tmp
open -W /tmp/gmsh-${GMSH}-MacOSX.dmg # open -W /tmp/gmsh-${GMSH}-MacOSX.dmg
hdiutil convert /tmp/gmsh-${GMSH}-MacOSX.dmg -format UDTO -o /tmp/gmsh-tmp.cdr
hdiutil attach -nobrowse -noverify -noautoopen -mountpoint gmsh_mount /tmp/gmsh-tmp.cdr
tar zxvf /tmp/getdp-${GETDP}-MacOSX64c.tgz -C /tmp tar zxvf /tmp/getdp-${GETDP}-MacOSX64c.tgz -C /tmp
cp /tmp/README.txt gmsh-getdp-MacOSX cp /tmp/README.txt gmsh-getdp-MacOSX
cp -R /Volumes/gmsh-*${GMSH}-MacOSX/Gmsh.app gmsh-getdp-MacOSX cp -R gmsh_mount/Gmsh.app gmsh-getdp-MacOSX
mv /tmp/getdp-*${GETDP}-MacOSX/bin/getdp gmsh-getdp-MacOSX/Gmsh.app/Contents/MacOS/ mv /tmp/getdp-*${GETDP}-MacOSX/bin/getdp gmsh-getdp-MacOSX/Gmsh.app/Contents/MacOS/
cp /Volumes/gmsh-*${GMSH}-MacOSX/LICENSE.txt gmsh-getdp-MacOSX/LICENSE_Gmsh.txt cp gmsh_mount/LICENSE.txt gmsh-getdp-MacOSX/LICENSE_Gmsh.txt
mv /tmp/getdp-*${GETDP}-MacOSX/share/doc/getdp/LICENSE.txt gmsh-getdp-MacOSX/LICENSE_GetDP.txt mv /tmp/getdp-*${GETDP}-MacOSX/share/doc/getdp/LICENSE.txt gmsh-getdp-MacOSX/LICENSE_GetDP.txt
cp /Volumes/gmsh-*${GMSH}-MacOSX/CREDITS.txt gmsh-getdp-MacOSX/CREDITS_Gmsh.txt cp gmsh_mount/CREDITS.txt gmsh-getdp-MacOSX/CREDITS_Gmsh.txt
mv /tmp/getdp-*${GETDP}-MacOSX/share/doc/getdp/CREDITS.txt gmsh-getdp-MacOSX/CREDITS_GetDP.txt mv /tmp/getdp-*${GETDP}-MacOSX/share/doc/getdp/CREDITS.txt gmsh-getdp-MacOSX/CREDITS_GetDP.txt
umount /Volumes/gmsh-*${GMSH}-MacOSX umount gmsh_mount
rm -rf /tmp/gmsh-* rm -rf /tmp/gmsh-*
rm -rf /tmp/getdp-* rm -rf /tmp/getdp-*
zip -r gmsh-getdp-MacOSX.zip gmsh-getdp-MacOSX zip -r gmsh-getdp-MacOSX.zip gmsh-getdp-MacOSX
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment