aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/objdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/objdiff')
-rwxr-xr-xscripts/objdiff18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/objdiff b/scripts/objdiff
index b8f7fc60563e..cc6736553958 100755
--- a/scripts/objdiff
+++ b/scripts/objdiff
@@ -28,17 +28,17 @@
28SRCTREE=$(git rev-parse --show-toplevel 2>/dev/null) 28SRCTREE=$(git rev-parse --show-toplevel 2>/dev/null)
29 29
30if [ -z "$SRCTREE" ]; then 30if [ -z "$SRCTREE" ]; then
31 echo "ERROR: Not a git repository." 31 echo >&2 "ERROR: Not a git repository."
32 exit 1 32 exit 1
33fi 33fi
34 34
35TMPD=$SRCTREE/.tmp_objdiff 35TMPD=$SRCTREE/.tmp_objdiff
36 36
37usage() { 37usage() {
38 echo "Usage: $0 <command> <args>" 38 echo >&2 "Usage: $0 <command> <args>"
39 echo " record <list of object files>" 39 echo >&2 " record <list of object files>"
40 echo " diff <commitA> <commitB>" 40 echo >&2 " diff <commitA> <commitB>"
41 echo " clean all | <commit>" 41 echo >&2 " clean all | <commit>"
42 exit 1 42 exit 1
43} 43}
44 44
@@ -88,12 +88,12 @@ dodiff() {
88 DSTD="$TMPD/$DST" 88 DSTD="$TMPD/$DST"
89 89
90 if [ ! -d "$SRCD" ]; then 90 if [ ! -d "$SRCD" ]; then
91 echo "ERROR: $SRCD doesn't exist" 91 echo >&2 "ERROR: $SRCD doesn't exist"
92 exit 1 92 exit 1
93 fi 93 fi
94 94
95 if [ ! -d "$DSTD" ]; then 95 if [ ! -d "$DSTD" ]; then
96 echo "ERROR: $DSTD doesn't exist" 96 echo >&2 "ERROR: $DSTD doesn't exist"
97 exit 1 97 exit 1
98 fi 98 fi
99 99
@@ -112,7 +112,7 @@ doclean() {
112 if [ -d "$TMPD/$CMT" ]; then 112 if [ -d "$TMPD/$CMT" ]; then
113 rm -rf $TMPD/$CMT 113 rm -rf $TMPD/$CMT
114 else 114 else
115 echo "$CMT not found" 115 echo >&2 "$CMT not found"
116 fi 116 fi
117 fi 117 fi
118} 118}
@@ -133,7 +133,7 @@ case "$1" in
133 doclean $* 133 doclean $*
134 ;; 134 ;;
135 *) 135 *)
136 echo "Unrecognized command '$1'" 136 echo >&2 "Unrecognized command '$1'"
137 exit 1 137 exit 1
138 ;; 138 ;;
139esac 139esac