Permalink
Browse files

Move to external copies of libjs-simile-timeline.

Signed-off-by: Chris Lamb <lamby@debian.org>
  • Loading branch information...
1 parent dbb72d4 commit 0c464921c8c823cfcb180930138e6124d7659c36 @lamby committed May 17, 2009
Showing with 16 additions and 12 deletions.
  1. +1 −2 .gitignore
  2. +9 −8 Makefile
  3. +6 −2 index.html
View
@@ -1,3 +1,2 @@
xml
-support/timeline
-support/simile-ajax
+media/timeline_*
View
@@ -3,7 +3,14 @@ OUTPUT := $(addsuffix .xml,$(subst data/,xml/,$(basename $(INPUT))))
DESTDIR := /
TARGET := $(DESTDIR)/usr/share/debian-timeline
-all: build
+all: build check
+
+check:
+ @set -e; for LIBS in ajax js; do \
+ if [ ! -e media/timeline_$$LIBS ]; then \
+ echo "Warning - media/timeline_$$LIBS does not exist or is an invalid symlink."; \
+ fi \
+ done
xml/%.xml: data/%
@mkdir -p xml
@@ -22,10 +29,4 @@ install: build
install -m644 -t $(TARGET)/$$DIR $$DIR/*; \
done
-libs:
- rm -rf support/timeline support/simile-ajax
- svn co http://simile.mit.edu/repository/timeline/trunk/src/webapp/api/ support/timeline
- svn co http://simile.mit.edu/repository/ajax/trunk/src/webapp/api/ support/simile-ajax
- find support/ -name ".svn" -type d -print0 | xargs -0 rm -rf
-
-.PHONY: install clean install libs
+.PHONY: install clean install check
View
@@ -2,8 +2,12 @@
<head>
<title>Debian Project Timeline - a timeline of the Debian GNU/Linux project</title>
<link rel="stylesheet" href="media/debian-timeline.css" type="text/css" />
-<script src="support/simile-ajax/simile-ajax-api.js" type="text/javascript"></script>
-<script src="support/timeline/timeline-api.js" type="text/javascript"></script>
+<script type="text/javascript">
+ Timeline_ajax_url='media/timeline_ajax/simile-ajax-api.js';
+ Timeline_urlPrefix='media/timeline_js/';
+ Timeline_parameters='bundle=true';
+</script>
+<script src="/usr/share/javascript/timeline_js/timeline-api.js" type="text/javascript"></script>
<script src="media/debian-timeline.js" type="text/javascript"></script>
</head>

0 comments on commit 0c46492

Please sign in to comment.