[Lsb-messages] /var/www/bzr/lsb/devel/specdb r1258: Hide the dump output in the same way we do the restore output.
Jeff Licquia
licquia at linuxfoundation.org
Tue Jan 22 16:56:05 UTC 2013
------------------------------------------------------------
revno: 1258
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: specdb
timestamp: Tue 2013-01-22 11:56:05 -0500
message:
Hide the dump output in the same way we do the restore output.
modified:
makefile
-------------- next part --------------
=== modified file 'makefile'
--- a/makefile 2013-01-22 16:52:18 +0000
+++ b/makefile 2013-01-22 16:56:05 +0000
@@ -66,8 +66,9 @@
echo $(ELEMENTS) > $@
%_dump: elements_list
- mysqldump --add-drop-table --no-data $(DBOPTS) $(DUMPOPTS) $$LSBDB $* | grep -v 'Server version' |grep -v 'character_set_client' > $*.sql
- if grep -q $* elements_list; then \
+ @echo $*
+ @mysqldump --add-drop-table --no-data $(DBOPTS) $(DUMPOPTS) $$LSBDB $* | grep -v 'Server version' |grep -v 'character_set_client' > $*.sql
+ @if grep -q $* elements_list; then \
mysqldump $(DBOPTS) $(DUMPOPTS) $$LSBDB $* | LC_ALL=C grep INSERT || true > $*.init; \
else \
rm -f "$$PWD/$*.init" && mysql $(DBOPTS) $$LSBDB -e "select * from $* into outfile '$$PWD/$*.init'"; \
More information about the lsb-messages
mailing list