Browse Source

Tweak usage strings

Scott Lahteine 5 years ago
parent
commit
2117a45d1a

+ 1
- 1
buildroot/share/fonts/genpages.c View File

@@ -157,7 +157,7 @@ uint8_t* get_utf8_value(uint8_t *pstart, wchar_t *pval) {
157 157
 }
158 158
 
159 159
 void usage(char* progname) {
160
-  fprintf(stderr, "Usage: %s\n", progname);
160
+  fprintf(stderr, "usage: %s\n", progname);
161 161
   fprintf(stderr, "   read data from stdin\n");
162 162
 }
163 163
 

+ 1
- 1
buildroot/share/git/firstpush View File

@@ -6,7 +6,7 @@
6 6
 # commit log to watch Travis CI progress.
7 7
 #
8 8
 
9
-[[ $# == 0 ]] || { echo "Usage: `basename $0`" 1>&2 ; exit 1; }
9
+[[ $# == 0 ]] || { echo "usage: `basename $0`" 1>&2 ; exit 1; }
10 10
 
11 11
 MFINFO=$(mfinfo) || exit 1
12 12
 IFS=' ' read -a INFO <<< "$MFINFO"

+ 1
- 1
buildroot/share/git/ghtp View File

@@ -13,7 +13,7 @@ case "$1" in
13 13
   -[Hh]) TYPE=HTTPS ; MATCH="git@" ; FORMULA="$GH_SSH/$GH_HTTPS" ;;
14 14
   -[Ss]) TYPE=SSH ; MATCH="https:" ; FORMULA="$GH_HTTPS/$GH_SSH" ;;
15 15
   *)
16
-    echo "Usage: `basename $0` -h | -s" 1>&2
16
+    echo "usage: `basename $0` -h | -s" 1>&2
17 17
     echo -e " \e[0;92m-h\e[0m to switch to HTTPS" 1>&2
18 18
     echo -e " \e[0;92m-s\e[0m to switch to SSH" 1>&2
19 19
     exit 1

+ 1
- 1
buildroot/share/git/mfadd View File

@@ -7,7 +7,7 @@
7 7
 # Example: mfadd thinkyhead:patch-1 copy_of_patch-1
8 8
 #
9 9
 
10
-[[ $# > 0 && $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "Usage: `basename $0` (user | ref copyname)" 1>&2 ; exit 1; }
10
+[[ $# > 0 && $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` (user | ref copyname)" 1>&2 ; exit 1; }
11 11
 
12 12
 # If a colon is included, split the parts
13 13
 if [[ $1 =~ ":" ]]; then

+ 1
- 1
buildroot/share/git/mfdoc View File

@@ -5,7 +5,7 @@
5 5
 # Start Jekyll in watch mode to work on Marlin Documentation and preview locally
6 6
 #
7 7
 
8
-[[ $# == 0 ]] || { echo "Usage: `basename $0`" 1>&2 ; exit 1; }
8
+[[ $# == 0 ]] || { echo "usage: `basename $0`" 1>&2 ; exit 1; }
9 9
 
10 10
 MFINFO=$(mfinfo "$@") || exit 1
11 11
 IFS=' ' read -a INFO <<< "$MFINFO"

+ 1
- 1
buildroot/share/git/mffp View File

@@ -6,7 +6,7 @@
6 6
 # By default: `git push upstream HEAD:bugfix-1.1.x`
7 7
 #
8 8
 
9
-[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "Usage: `basename $0` [1|2] [commit-id]" 1>&2 ; exit 1; }
9
+[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` [1|2] [commit-id]" 1>&2 ; exit 1; }
10 10
 
11 11
 if [[ $1 == '1' || $1 == '2' ]]; then
12 12
   MFINFO=$(mfinfo "$1") || exit 1

+ 1
- 1
buildroot/share/git/mfinfo View File

@@ -12,7 +12,7 @@
12 12
 #   - Current Branch
13 13
 #
14 14
 
15
-# usage() { echo "Usage: `basename $0` [1|2] [branch]" 1>&2 ; }
15
+# usage() { echo "usage: `basename $0` [1|2] [branch]" 1>&2 ; }
16 16
 # [[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage; exit 1; }
17 17
 
18 18
 CURR=$(git branch 2>/dev/null | grep ^* | sed 's/\* //g')

+ 1
- 1
buildroot/share/git/mfinit View File

@@ -5,7 +5,7 @@
5 5
 # Create the upstream remote for a forked repository
6 6
 #
7 7
 
8
-[[ $# == 0 ]] || { echo "Usage: `basename $0`" 1>&2 ; exit 1; }
8
+[[ $# == 0 ]] || { echo "usage: `basename $0`" 1>&2 ; exit 1; }
9 9
 
10 10
 [[ -z $(git branch 2>/dev/null | grep ^* | sed 's/\* //g') ]] && { echo "No git repository here!" 1>&2 ; exit 1; }
11 11
 

+ 1
- 1
buildroot/share/git/mfnew View File

@@ -6,7 +6,7 @@
6 6
 #
7 7
 
8 8
 usage() {
9
-  echo "Usage: `basename $0` [1|2] [name]" 1>&2
9
+  echo "usage: `basename $0` [1|2] [name]" 1>&2
10 10
 }
11 11
 
12 12
 [[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage; exit 1; }

+ 1
- 1
buildroot/share/git/mfpr View File

@@ -5,7 +5,7 @@
5 5
 # Make a PR of the current branch against RCBugFix or dev
6 6
 #
7 7
 
8
-[[ $# < 2 && $1 != "-h" && $1 != "--help" ]] || { echo "Usage: `basename $0` [branch]" 1>&2 ; exit 1; }
8
+[[ $# < 2 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` [branch]" 1>&2 ; exit 1; }
9 9
 
10 10
 MFINFO=$(mfinfo "$@") || exit 1
11 11
 IFS=' ' read -a INFO <<< "$MFINFO"

+ 1
- 1
buildroot/share/git/mfpub View File

@@ -9,7 +9,7 @@
9 9
 # any permanent changes to 'master'.
10 10
 #
11 11
 
12
-[[ $# < 2 && $1 != "-h" && $1 != "--help" ]] || { echo "Usage: `basename $0` [branch]" 1>&2 ; exit 1; }
12
+[[ $# < 2 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` [branch]" 1>&2 ; exit 1; }
13 13
 
14 14
 MFINFO=$(mfinfo "$@") || exit 1
15 15
 IFS=' ' read -a INFO <<< "$MFINFO"

+ 1
- 1
buildroot/share/git/mfqp View File

@@ -5,7 +5,7 @@
5 5
 # Add all changed files, commit as "patch", do `mfrb` and `git push -f`
6 6
 #
7 7
 
8
-[[ $# < 2 && $1 != "-h" && $1 != "--help" ]] || { echo "Usage: `basename $0` [1|2]" 1>&2 ; exit 1; }
8
+[[ $# < 2 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` [1|2]" 1>&2 ; exit 1; }
9 9
 
10 10
 MFINFO=$(mfinfo "$@") || exit 1
11 11
 IFS=' ' read -a INFO <<< "$MFINFO"

+ 1
- 1
buildroot/share/git/mfup View File

@@ -7,7 +7,7 @@
7 7
 # - Force-push the branch to 'origin'
8 8
 #
9 9
 
10
-[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "Usage: `basename $0` [1|2] [branch]" 1>&2 ; exit 1; }
10
+[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` [1|2] [branch]" 1>&2 ; exit 1; }
11 11
 
12 12
 MFINFO=$(mfinfo "$@") || exit 1
13 13
 IFS=' ' read -a INFO <<< "$MFINFO"

Loading…
Cancel
Save