Permalink
Browse files

symlink the correct files into narwhal, also allow passing a raw url …

…string to LPAnchorButton
  • Loading branch information...
1 parent 7a376b4 commit 56c73e6e652aa352cd976b73170eecc4d9393421 @luddep committed Jul 23, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 Jakefile
  2. +1 −1 LPAnchorButton.j
View
@@ -80,7 +80,7 @@ task ("build", ["LPKit"]);
task ("install", ["debug", "release"])
-task ("symlink", ["release", "debug"], function()
+task ("symlink-narwhal", ["release", "debug"], function()
{
// TODO: this should not be hardcoded to /usr/local - not sure how
// to actually find the path to narwhal right now though.
@@ -93,7 +93,7 @@ task ("symlink", ["release", "debug"], function()
if (aConfig === "Debug")
frameworksPath = FILE.join(frameworksPath, aConfig);
- var buildPath = FILE.absolute(FILE.join("Build", aConfig, "LPKit")),
+ var buildPath = FILE.absolute(FILE.join(ENV["CAPP_BUILD"], aConfig, "LPKit")),
symlinkPath = FILE.join(frameworksPath, "LPKit");
OS.system(["sudo", "ln", "-s", buildPath, symlinkPath]);
View
@@ -133,7 +133,7 @@ LPAnchorButtonHoverUnderline = 2;
self._DOMElement.appendChild(_DOMAnchorElement)
}
- _DOMAnchorElement.href = [_URL absoluteString];
+ _DOMAnchorElement.href = typeof _URL == 'string' ? _URL : [_URL absoluteString];
var bounds = [self bounds];

0 comments on commit 56c73e6

Please sign in to comment.