diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-08-13 06:40:09 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-08-13 06:40:09 -0700 |
commit | fdc99e16cdc1fb38323ea1c7d16633144d0e41d9 (patch) | |
tree | ded1fdfd1bfc04a2e37a87b267d96e0a4157bca0 | |
parent | 8c3cb543d95724a911f77d4c377ad1066557e611 (diff) | |
download | mediapointer-dvb-s2-fdc99e16cdc1fb38323ea1c7d16633144d0e41d9.tar.gz mediapointer-dvb-s2-fdc99e16cdc1fb38323ea1c7d16633144d0e41d9.tar.bz2 |
build: make whitespace cleaning script work with qrefresh target
From: Trent Piepho <xyzzy@speakeasy.org>
Files changed in an mq patch weren't being checked.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
-rw-r--r-- | Makefile | 3 | ||||
-rwxr-xr-x | v4l/scripts/strip-trailing-whitespaces.sh | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -32,6 +32,7 @@ commit cvscommit hgcommit change changes changelog:: whitespace @hg log -v -r -1 @echo "*** If not ok, do \"hg rollback\" and \"make commit\" again" +qrefresh: Q=q qrefresh:: whitespace cd $(BUILD_DIR); scripts/cardlist; cd .. v4l/scripts/prep_commit_msg.pl -q $(TMP)/v4l_hg_whitespace > \ @@ -49,5 +50,5 @@ push:: whitespace whitespaces: @echo "Cleaning bad whitespaces" - @v4l/scripts/strip-trailing-whitespaces.sh fast | \ + @v4l/scripts/strip-trailing-whitespaces.sh $(Q)fast | \ tee $(TMP)/v4l_hg_whitespace | patch -p0 diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh index a546a0b9f..9bd963025 100755 --- a/v4l/scripts/strip-trailing-whitespaces.sh +++ b/v4l/scripts/strip-trailing-whitespaces.sh @@ -11,6 +11,8 @@ if [ "x$1" = "xfast" ]; then files="hg status -man" +elif [ "x$1" = "xqfast" ]; then + files="hg status --rev -2 -man" elif [ "x$1" = "xmanifest" ]; then files="hg manifest | cut '-d ' -f3" else |