From c874039e63fc5634e241d43adfa52ae550a1430e Mon Sep 17 00:00:00 2001 From: glenlow Date: Sat, 3 Oct 2009 02:08:59 +0000 Subject: [PATCH] fix crash on installing in Snow Leopard (postinstall script needed #!/bin/sh header) --- macosx/build/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' >>$@ -- 2.40.0