Permalink
Browse files

Removed old javascript files, updated build scripts for python

  • Loading branch information...
1 parent 285a5ae commit b9c363f8df90fc98599428f4d46341097818216c @ccotter ccotter committed Aug 31, 2012
View
@@ -1,4 +1,8 @@
#!/bin/bash
+
+echo "Don't run this outdated script - see coweb/js/setup_python_js.sh"
+exit
+
rm -r ../release/coweb-latest
./requirejs-*/build/build.sh coweb.build.js
VERSION=`grep VERSION ../lib/coweb/main.js`
@@ -1,51 +0,0 @@
-//
-// config initializer.
-//
-// Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
-// Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved.
-//
-/*jslint white:false, bitwise:true, eqeqeq:true, immed:true, nomen:false,
- onevar:false, plusplus:false, undef:true, browser:true, devel:true,
- forin:false, sub:false*/
-/*global define cowebConfig*/
-
-if(typeof cowebConfig === 'undefined') {
- cowebConfig = {};
-}
-
-// mix defaults into coweb config where left undefined
-cowebConfig = {
- sessionImpl : cowebConfig.sessionImpl || undefined,
- listenerImpl : cowebConfig.listenerImpl || undefined,
- collabImpl : cowebConfig.collabImpl || undefined,
- debug : cowebConfig.debug || false,
- baseUrl : cowebConfig.baseUrl || '',
- adminUrl : cowebConfig.adminUrl || '/admin',
- loginUrl : cowebConfig.loginUrl || '/login',
- logoutUrl : cowebConfig.logoutUrl || '/logout',
- cacheState : cowebConfig.cacheState || false
-};
-
-(function () {
- // build up a list of dependencies dynamically
- var deps = [];
- // add require to be used to load configured implementation modules
- deps.push("require");
- if (cowebConfig.sessionImpl) {
- deps.push(cowebConfig.sessionImpl);
- }
- if (cowebConfig.listenerImpl) {
- deps.push(cowebConfig.listenerImpl);
- }
- if (cowebConfig.collabImpl) {
- deps.push(cowebConfig.collabImpl);
- }
-
- define(deps, function(req) {
- var sessionImpl = cowebConfig.sessionImpl ? req(cowebConfig.sessionImpl) : undefined;
- var listenerImpl = cowebConfig.listenerImpl ? req(cowebConfig.listenerImpl) : undefined;
- var collabImpl = cowebConfig.collabImpl ? req(cowebConfig.collabImpl) : undefined;
- return {sessionImpl: sessionImpl, listenerImpl: listenerImpl, collabImpl: collabImpl};
- });
-
-}());
Oops, something went wrong.

0 comments on commit b9c363f

Please sign in to comment.