Merge lp:~wallyworld/launchpad/fix-js-build-paths into lp:launchpad

Proposed by Ian Booth
Status: Merged
Approved by: William Grant
Approved revision: no longer in the source branch.
Merged at revision: 13401
Proposed branch: lp:~wallyworld/launchpad/fix-js-build-paths
Merge into: lp:launchpad
Diff against target: 16 lines (+4/-1)
1 file modified
Makefile (+4/-1)
To merge this branch: bzr merge lp:~wallyworld/launchpad/fix-js-build-paths
Reviewer Review Type Date Requested Status
William Grant Approve
Review via email: mp+67473@code.launchpad.net

Commit message

[r=wgrant][bug=808561] Fix path expr used to find js files during make

Description of the change

The Makefile did not pick up the longpoll.js file when it packaged the javascript. The find expression used to locate the javascript files needed to be modified because the longpoll javascript lives in a slightly different location to where previous javascript has traditionally been put in the source tree.

This branch fixes the find expression used to locate the javascript. It makes it more permissive and also includes some extra exclusions to prevent unneeded javascript from being slurped up.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) wrote :

Thanks for the fixes.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2011-07-08 03:08:43 +0000
3+++ Makefile 2011-07-11 01:36:41 +0000
4@@ -25,9 +25,12 @@
5 JS_BUILD := min
6 endif
7
8+JS_SOURCE_PATHS = -path './lib/lp/*/javascript/*' ! -path '*/tests/*' \
9+ ! -path '*/testing/*' ! -path './lib/lp/services/*' \
10+ ! -path './lib/lp/contrib/*'
11 JS_YUI := $(shell utilities/yui-deps.py $(JS_BUILD:raw=))
12 JS_OTHER := $(wildcard lib/canonical/launchpad/javascript/*/*.js)
13-JS_LP := $(shell find lib/lp/*/javascript ! -path '*/tests/*' -name '*.js' ! -name '.*.js' )
14+JS_LP := $(shell find $(JS_SOURCE_PATHS) -name '*.js' ! -name '.*.js' )
15 JS_ALL := $(JS_YUI) $(JS_OTHER) $(JS_LP)
16 JS_OUT := $(LP_BUILT_JS_ROOT)/launchpad.js
17