From: glenlow Date: Sat, 3 Oct 2009 02:08:59 +0000 (+0000) Subject: fix crash on installing in Snow Leopard (postinstall script needed #!/bin/sh header) X-Git-Tag: LAST_LIBGRAPH~32^2~1693 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c874039e63fc5634e241d43adfa52ae550a1430e;p=graphviz fix crash on installing in Snow Leopard (postinstall script needed #!/bin/sh header) --- diff --git a/macosx/build/Makefile b/macosx/build/Makefile index 2ab854bf7..e2891d4e2 100644 --- a/macosx/build/Makefile +++ b/macosx/build/Makefile @@ -45,7 +45,9 @@ Release/Graphviz.app: ../*.m ../*.h $(GV_DIR)/cmd/dot/.libs/$(DOT) "$(XCODEBUILD)" -project ../graphviz.xcodeproj -configuration Release postinstall: - echo "/usr/local/bin/dot -c" >$@ + echo "#!/bin/sh" >$@ + echo >>$@ + echo "/usr/local/bin/dot -c" >>$@ make -n -C ../../tclpkg install-data-hook >>$@ echo "arch -arch i386 -arch ppc /usr/local/bin/gv-fc-cache" >>$@ echo 'if test `sysctl -n hw.cpu64bit_capable` = 1; then arch -arch x86_64 -arch ppc64 /usr/local/bin/gv-fc-cache; fi' >>$@