[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r103730: * autogen/update_autogen (ms
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r103730: * autogen/update_autogen (msg): Remove function; use `exec' instead. |
Date: |
Wed, 23 Mar 2011 00:58:05 -0700 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 103730
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2011-03-23 00:58:05 -0700
message:
* autogen/update_autogen (msg): Remove function; use `exec' instead.
modified:
ChangeLog
autogen/update_autogen
=== modified file 'ChangeLog'
--- a/ChangeLog 2011-03-23 06:40:56 +0000
+++ b/ChangeLog 2011-03-23 07:58:05 +0000
@@ -1,6 +1,7 @@
2011-03-23 Glenn Morris <address@hidden>
* autogen/update_autogen: Fix typo.
+ (msg): Remove function; use `exec' instead.
* Makefile.in (mkdir): Use `install-sh -d' instead of mkinstalldirs.
(sync-from-gnulib): Don't sync mkinstalldirs.
=== modified file 'autogen/update_autogen'
--- a/autogen/update_autogen 2011-03-23 06:40:56 +0000
+++ b/autogen/update_autogen 2011-03-23 07:58:05 +0000
@@ -104,14 +104,10 @@
[ $# -eq 0 ] || die "Wrong number of arguments"
-function msg ()
-{
- [ "$quiet" ] && return 0
- echo "$@"
-} # function msg
-
-
-msg "Running bzr status..."
+[ "$quiet" ] && exec 1> /dev/null
+
+
+echo "Running bzr status..."
bzr status -S $sources >| $tempfile || die "bzr status error for sources"
@@ -119,7 +115,7 @@
case $stat in
M)
- msg "Locally modified: $file"
+ echo "Locally modified: $file"
[ "$force" ] || die "There are local modifications"
;;
@@ -128,7 +124,7 @@
done < $tempfile
-msg "Running autoreconf..."
+echo "Running autoreconf..."
autoreconf -I m4 || die "autoreconf error"
@@ -138,6 +134,7 @@
cd autogen
+echo "Checking status of generated files..."
bzr status -S $basegen >| $tempfile || \
die "bzr status error for generated files"
@@ -155,28 +152,25 @@
[ "$modified" ] || {
- msg "No files were modified"
+ echo "No files were modified"
exit 0
}
-msg "Modified file(s): $modified"
+echo "Modified file(s): $modified"
[ "$commit" ] || exit 0
-msg "Committing..."
+echo "Committing..."
## bzr status output is annoyingly always relative to top-level, not PWD.
cd ../
-opt=
-[ "$quiet" ] && opt=-q
-
-bzr commit $opt -m "Auto-commit of generated files." $modified || \
+bzr commit -m "Auto-commit of generated files." $modified || \
die "bzr commit error"
-msg "Committed files: $modified"
+echo "Committed files: $modified"
exit
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r103730: * autogen/update_autogen (msg): Remove function; use `exec' instead.,
Glenn Morris <=