summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-06-08 08:58:41 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-06-08 08:58:41 -0300
commit0e580200519552834546a8d4e5448410d7630810 (patch)
tree6cf6d3a463003e9ea02f3e49b0dc0c259bdbf917
parent758ff16d22a0fb81eebe5aec5eaf382a2f71c336 (diff)
downloadmediapointer-dvb-s2-0e580200519552834546a8d4e5448410d7630810.tar.gz
mediapointer-dvb-s2-0e580200519552834546a8d4e5448410d7630810.tar.bz2
A few improvements on v4l-dvb makefile
From: Mauro Carvalho Chehab <mchehab@infradead.org> make commit: - It will now detect that the commit message were not changing, aborting commit. This avoids the need of doing a rollback every time you decide not commiting yet; - hg undo command is absent on newer versions of Mercurial. makefile changed to print, instead "hg rollback"; - removed uneeded messages printed on "make commit". make whitespace: - added an alias for make "whitespaces" to work. Since the log message presents "Cleaning bad whitespaces", a common typo mistake were using the parameter in plural. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index fdccb41c0..1c9de084a 100644
--- a/Makefile
+++ b/Makefile
@@ -19,14 +19,18 @@ install:
$(MAKE) -C $(BUILD_DIR) $(MAKECMDGOALS)
commit cvscommit hgcommit change changes changelog:: whitespace
- cd $(BUILD_DIR); scripts/cardlist; cd ..
- v4l/scripts/prep_commit_msg.pl $(TMP)/v4l_hg_whitespace > \
+ @cd $(BUILD_DIR); scripts/cardlist; cd ..
+ @v4l/scripts/prep_commit_msg.pl $(TMP)/v4l_hg_whitespace > \
$(TMP)/v4l_hg_commit.msg
- $(EDITOR) $(TMP)/v4l_hg_commit.msg
+ @CHECKSUM=`md5sum "$(TMP)/v4l_hg_commit.msg"`; \
+ $(EDITOR) $(TMP)/v4l_hg_commit.msg || exit $?; \
+ echo "$$CHECKSUM" | md5sum -c --status && \
+ echo "*** commit message not changed. Aborting. ***" \
+ && exit 13 || exit 0
grep -v '^#' $(TMP)/v4l_hg_commit.msg | hg commit -l -
@echo "*** PLEASE CHECK IF LOG IS OK:"
@hg log -v -r -1
- @echo "*** If not ok, do hg undo and make commit again"
+ @echo "*** If not ok, do \"hg rollback\" and \"make commit\" again"
qrefresh:: whitespace
cd $(BUILD_DIR); scripts/cardlist; cd ..
@@ -43,7 +47,7 @@ push::
@echo "Pushing changes to master repository"
-hg push
-whitespace:
+whitespace whitespaces:
@echo "Cleaning bad whitespaces"
@v4l/scripts/strip-trailing-whitespaces.sh fast | \
tee $(TMP)/v4l_hg_whitespace | patch -p0