Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated build process paths

  • Loading branch information...
commit 1b0119d6a7038d3809c9fa7958a4dcfbc08e1db8 1 parent 179c6f1
@lannymcnie lannymcnie authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 build/build.js
View
18 build/build.js
@@ -5,8 +5,8 @@ CONFIGURATION
*/
// listing of all source files, with dependencies listed in order:
var SOURCE_FILES = [
- "../src/soundjs/SoundJS.js",
- "../src/soundjs/HTMLAudioPlugin.js",
+ __dirname + "/../src/soundjs/SoundJS.js",
+ __dirname + "/../src/soundjs/HTMLAudioPlugin.js",
//"../src/soundjs/FlashPlugin.js"
];
@@ -26,18 +26,18 @@ var DOCS_DIR_NAME = PROJECT_NAME+"_docs-%VERSION%";
var DOCS_FILE_NAME = DOCS_DIR_NAME+".zip";
// name of directory where generated files are placed
-var OUTPUT_DIR_NAME = "output";
+var OUTPUT_DIR_NAME = __dirname + "/output";
// path to directory that includes YUI Doc templates
-var TEMPLATE_DIR_PATH = "template";
+var TEMPLATE_DIR_PATH = __dirname + "/template";
// tmp directory used when running scripts:
-var TMP_DIR_NAME = "tmp";
+var TMP_DIR_NAME = __dirname + "/tmp";
// paths to tools:
-var GOOGLE_CLOSURE_PATH = "../tools/google-closure/compiler.jar";
-var YUI_DOC_PATH = "../tools/yuidoc/bin/yuidoc.py";
+var GOOGLE_CLOSURE_PATH = __dirname + "/../tools/google-closure/compiler.jar";
+var YUI_DOC_PATH = __dirname + "/../tools/yuidoc/bin/yuidoc.py";
// yui version being used
var YUI_VERSION = 2;
@@ -48,7 +48,7 @@ END CONFIGURATION
************************************************************/
-// TODO: add support for recursively checking to see if we are ommiting any files
+// TODO: add support for recursively checking to see if we are omitting any files
var FILE = require("fs");
@@ -271,7 +271,7 @@ function buildSourceTask(completeHandler)
exitWithFailure();
}
- var license_data = FILE.readFileSync("license.txt", "UTF-8");
+ var license_data = FILE.readFileSync(__dirname + "/license.txt", "UTF-8");
var final_data = FILE.readFileSync(tmp_file, "UTF-8");
FILE.writeFileSync(final_file, license_data + final_data, "UTF-8");
Please sign in to comment.
Something went wrong with that request. Please try again.