← Back to team overview

yellow team mailing list archive

[Merge] lp:~bac/juju-gui/spritegen-trivial into lp:juju-gui

 

Brad Crittenden has proposed merging lp:~bac/juju-gui/spritegen-trivial into lp:juju-gui.

Requested reviews:
  Juju GUI Hackers (juju-gui)

For more details, see:
https://code.launchpad.net/~bac/juju-gui/spritegen-trivial/+merge/133063

Fix Makefile error wrt spritegen

If app/assets/sprite exists then regenerating sprites failed since the
logic assumed the directory would not be there.  Remove the directory
before copying the contents of the newly generated sprite data.

Self-reviewed.

https://codereview.appspot.com/6814092/

-- 
https://code.launchpad.net/~bac/juju-gui/spritegen-trivial/+merge/133063
Your team Juju GUI Hackers is requested to review the proposed merge of lp:~bac/juju-gui/spritegen-trivial into lp:juju-gui.
=== modified file 'Makefile'
--- Makefile	2012-10-31 10:57:16 +0000
+++ Makefile	2012-11-06 13:19:18 +0000
@@ -28,7 +28,8 @@
 
 $(SPRITE_GENERATED_FILES): node_modules/grunt node_modules/node-spritesheet $(SPRITE_SOURCE_FILES)
 	@node_modules/grunt/bin/grunt spritegen
-	@mv bin/sprite app/assets/sprite/
+	@rm -Rf app/assets/sprite/
+	@mv bin/sprite app/assets
 
 $(NODE_TARGETS): package.json
 	@npm install


Follow ups