mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 07:19:25 -05:00
Remove mangled js output symlinks.
Fixes issue with JS files / names falling out of sync.
This commit is contained in:
@@ -185,6 +185,8 @@ $(JS_OUTPUTS): $(JS_MODULE_BUILDSTAMPS)
|
||||
|
||||
define JS_MODULE_TEMPLATE
|
||||
$(BUILD_DIR)/js-$(1)-buildstamp: $$(shell $(PYTHON) r2/lib/js.py dependencies $(1))
|
||||
# remove mangled output symlinks, similar to above.
|
||||
rm -f $$(shell $(PYTHON) r2/lib/js.py enumerate_outputs $(1))
|
||||
paster run standalone r2/lib/js.py -c "build_module('$(1)')"
|
||||
touch $$@
|
||||
endef
|
||||
|
||||
@@ -308,8 +308,13 @@ def dependencies(name):
|
||||
print dep
|
||||
|
||||
@build_command
|
||||
def enumerate_outputs():
|
||||
for m in module.itervalues():
|
||||
def enumerate_outputs(*names):
|
||||
if names:
|
||||
modules = [module[name] for name in names]
|
||||
else:
|
||||
modules = module.itervalues()
|
||||
|
||||
for m in modules:
|
||||
for output in m.outputs:
|
||||
print output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user