http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/Info.plist ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/Info.plist b/content/api/latest/c++/Info.plist new file mode 100644 index 0000000..e26a342 --- /dev/null +++ b/content/api/latest/c++/Info.plist @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" +"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleName</key> + <string>Apache Mesos</string> + <key>CFBundleIdentifier</key> + <string>org.apache.mesos</string> + <key>CFBundleVersion</key> + <string>ProjectNumber</string> + <key>DocSetFeedName</key> + <string>Apache Mesos Docs</string> + <key>DocSetPublisherIdentifier</key> + <string>org.doxygen.Publisher</string> + <key>DocSetPublisherName</key> + <string>Publisher</string> + <key>DashDocSetFamily</key> + <string>doxy</string> + <key>DocSetPlatformFamily</key> + <string>doxygen</string> +</dict> +</plist>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/Makefile ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/Makefile b/content/api/latest/c++/Makefile new file mode 100644 index 0000000..01292b7 --- /dev/null +++ b/content/api/latest/c++/Makefile @@ -0,0 +1,38 @@ +DOCSET_NAME=org.apache.mesos.docset +DOCSET_CONTENTS=$(DOCSET_NAME)/Contents +DOCSET_RESOURCES=$(DOCSET_CONTENTS)/Resources +DOCSET_DOCUMENTS=$(DOCSET_RESOURCES)/Documents +DESTDIR=~/Library/Developer/Shared/Documentation/DocSets +XCODE_INSTALL=$(shell xcode-select -print-path) + +all: docset + +docset: + mkdir -p $(DOCSET_DOCUMENTS) + cp Nodes.xml $(DOCSET_RESOURCES) + cp Tokens.xml $(DOCSET_RESOURCES) + cp Info.plist $(DOCSET_CONTENTS) + tar --exclude $(DOCSET_NAME) \ + --exclude Nodes.xml \ + --exclude Tokens.xml \ + --exclude Info.plist \ + --exclude Makefile -c -f - . \ + | (cd $(DOCSET_DOCUMENTS); tar xvf -) + $(XCODE_INSTALL)/usr/bin/docsetutil index $(DOCSET_NAME) + rm -f $(DOCSET_DOCUMENTS)/Nodes.xml + rm -f $(DOCSET_DOCUMENTS)/Info.plist + rm -f $(DOCSET_DOCUMENTS)/Makefile + rm -f $(DOCSET_RESOURCES)/Nodes.xml + rm -f $(DOCSET_RESOURCES)/Tokens.xml + +clean: + rm -rf $(DOCSET_NAME) + +install: docset + mkdir -p $(DESTDIR) + cp -R $(DOCSET_NAME) $(DESTDIR) + +uninstall: + rm -rf $(DESTDIR)/$(DOCSET_NAME) + +always: