update-oojs-ui.sh: Replace target dir instead of adding file copies
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 19 Apr 2014 02:05:04 +0000 (04:05 +0200)
committerKrinkle <krinklemail@gmail.com>
Sat, 19 Apr 2014 02:14:36 +0000 (02:14 +0000)
commit86749ac4d74a4d849e89b836b47041863b3d42a0
tree64e7aee50d561603df4b5f78e97a83307d9bb7e3
parent8871180029c07becaa9def688c0b27a9203b5b0c
update-oojs-ui.sh: Replace target dir instead of adding file copies

* A command like "cp dist/* $TARGET_DIR" does not remove files
  that were deleted in the release dist. Using rsync instead.

* Use bash -n or -z instead of "" and "x$VAR" == "x" tricks.

* The "git commit <dir>" doesn't properly take care of staging
  deletion of files removed by the update script, nor does it
  reliably (?) stage new files.
  Instead using a combination of "git add -u <dir>" (The -u
  stages deletion and modifcation of tracked files), and
  "git add <dir>" (stages modification and creation of files in
  that directory).

* Use "grunt test" instead of "grunt <default>" to make more
  explicit what is going on (no change in behaviour, default=test).
  And document why we don't use plain grunt-build without tests.

Change-Id: Id97a66df64d9e43e3c05388486b9f959108363c1
maintenance/resources/update-oojs-ui.sh [new file with mode: 0755]
resources/lib/oojs-ui/update-oojs-ui.sh [deleted file]