---------------------------
-Copyright 2008-2011 Univention GmbH
+Copyright 2008-2012 Univention GmbH
http://www.univention.de/
Index: univention-dojo/debian/rules
===================================================================
--- univention-dojo/debian/rules (Revision 30565)
+++ univention-dojo/debian/rules (Arbeitskopie)
@@ -3,7 +3,7 @@
# Univention Dojo Package
# rules file for generating the deb package
#
-# Copyright 2008-2011 Univention GmbH
+# Copyright 2008-2012 Univention GmbH
#
# http://www.univention.de/
#
@@ -34,6 +34,10 @@
ucslint
dh_auto_test
+override_dh_auto_install:
+ univention-install-config-registry
+ dh_auto_install
+
%:
dh $@
Index: univention-dojo/debian/univention-dojo-api-viewer.links
===================================================================
--- univention-dojo/debian/univention-dojo-api-viewer.links (Revision 0)
+++ univention-dojo/debian/univention-dojo-api-viewer.links (Revision 0)
@@ -0,0 +1,2 @@
+usr/share/univention-dojo-api-viewer/ var/www/univention-management-console-doc
+etc/apache2/sites-available/univention-management-console-doc etc/apache2/sites-enabled/univention-management-console-doc
Index: univention-dojo/create_api_archive.sh
===================================================================
--- univention-dojo/create_api_archive.sh (Revision 0)
+++ univention-dojo/create_api_archive.sh (Revision 0)
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+#
+# script for checkout and tar latest dojo api viewer
+#
+# Copyright 2012 Univention GmbH
+#
+# http://www.univention.de/
+#
+# All rights reserved.
+#
+# The source code of this program is made available
+# under the terms of the GNU Affero General Public License version 3
+# (GNU AGPL V3) as published by the Free Software Foundation.
+#
+# Binary versions of this program provided by Univention to you as
+# well as other copyrighted, protected or trademarked materials like
+# Logos, graphics, fonts, specific documentations and configurations,
+# cryptographic keys etc. are subject to a license agreement between
+# you and Univention and not subject to the GNU AGPL V3.
+#
+# In the case you use this program under the terms of the GNU AGPL V3,
+# the program is provided in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License with the Debian GNU/Linux or Univention distribution in file
+# /usr/share/common-licenses/AGPL-3; if not, see
+# .
+
+svn export https://svn.dojotoolkit.org/website/trunk/api univention-dojo-api-viewer
+VERSION=$(svn info univention-dojo-api-viewer | grep -m1 'Revision:' | sed -n 's/^Revision: \(.*\)$/\1/')
+tar czf "univention-dojo-api-viewer-r$VERSION.tar.gz" univention-dojo-api-viewer
+
Index: univention-dojo/conffiles/var/www/ucs-overview/en.html.d/40dojo-api-viewer-en.html
===================================================================
--- univention-dojo/conffiles/var/www/ucs-overview/en.html.d/40dojo-api-viewer-en.html (Revision 0)
+++ univention-dojo/conffiles/var/www/ucs-overview/en.html.d/40dojo-api-viewer-en.html (Revision 0)
@@ -0,0 +1,5 @@
+
+ |
+Univention Management Console API |
+UMC javascript documentation |
+
Index: univention-dojo/conffiles/var/www/ucs-overview/de.html.d/40dojo-api-viewer-de.html
===================================================================
--- univention-dojo/conffiles/var/www/ucs-overview/de.html.d/40dojo-api-viewer-de.html (Revision 0)
+++ univention-dojo/conffiles/var/www/ucs-overview/de.html.d/40dojo-api-viewer-de.html (Revision 0)
@@ -0,0 +1,5 @@
+
+ |
+Univention Management Console API |
+UMC Javascript Dokumentation |
+
Index: univention-dojo/Makefile
===================================================================
--- univention-dojo/Makefile (Revision 30565)
+++ univention-dojo/Makefile (Arbeitskopie)
@@ -3,7 +3,7 @@
# Univention Dojo Package
# Makefile for building/installing the package
#
-# Copyright 2008-2011 Univention GmbH
+# Copyright 2008-2012 Univention GmbH
#
# http://www.univention.de/
#
@@ -40,9 +40,10 @@
DOJO_VERSION=$(shell find . -maxdepth 1 -name "dojo-release*-src.tar.gz" | sort -r | sed -n '1 s/^.*dojo-release-\(.*\)-src.tar.gz$$/\1/ p')
DOJO_DIR=dojo-release-$(DOJO_VERSION)-src
+API_VERSION=$(shell find . -maxdepth 1 -name "univention-dojo-api-viewer-r*.tar.gz" | sort -r | sed -n '1 s/^.*univention-dojo-api-viewer-r\(.*\).tar.gz$$/\1/ p')
.PHONY: clean all install
-build: $(DOJO_DIR)
+build: $(DOJO_DIR) apiviewer
$(DOJO_DIR):
tar xzf $@.tar.gz
@@ -57,10 +58,15 @@
patch -p0 < fix_dojoStoreMemory.patch
patch -p0 < fix_dijit_Templated.patch
+apiviewer:
+ tar -xzf "univention-dojo-api-viewer-r$(API_VERSION).tar.gz" --exclude='tests' --exclude='install' --exclude='data/*'
+ patch -p0 < dojo_api.patch
+
all: install
clean:
rm -rf $(DOJO_DIR)
+ rm -rf univention-dojo-api-viewer
install: build
@# main directory
@@ -75,4 +81,5 @@
[ "$${i%.sh}" != "$$i" ] && mod=0755; \
install -m $$mod "$(DOJO_DIR)/$$i" "$(DESTDIR)$(INSTDIR)/$$i"; \
done
-
+ @# install api-viewer
+ cp -r univention-dojo-api-viewer "$(DESTDIR)/usr/share/univention-dojo-api-viewer"