]> granicus.if.org Git - graphviz/commitdiff
fix crash on installing in Snow Leopard (postinstall script needed #!/bin/sh header)
authorglenlow <devnull@localhost>
Sat, 3 Oct 2009 02:08:59 +0000 (02:08 +0000)
committerglenlow <devnull@localhost>
Sat, 3 Oct 2009 02:08:59 +0000 (02:08 +0000)
macosx/build/Makefile

index 2ab854bf731b713e8439d2228354cfd11956e14c..e2891d4e28bbffc971862da3b86e5c6fe95a4067 100644 (file)
@@ -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' >>$@