Explorar el Código

Update usage info

Alois Mahdal hace 7 años
padre
commit
31e7e81544
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8
    2
      trigger_copr

+ 8
- 2
trigger_copr Ver fichero

@@ -14,6 +14,7 @@ usage() {
14 14
     warn ""
15 15
     warn "Options:"
16 16
     warn ""
17
+    warn "  -b BRN  build from branch BRN (default: last tag)"
17 18
     warn "  -n      dry mode, don't do anything (just show"
18 19
     warn "          what would be done)"
19 20
     warn "  -r REL  use REL as Release number in SPEC file"
@@ -21,8 +22,13 @@ usage() {
21 22
     warn "  -u URL  use URL as base (to get last tag and"
22 23
     warn "          compose Source0 in SPEC file)"
23 24
     warn ""
24
-    warn "If -r or -v are not specified, git-describe master"
25
-    warn "is consulted."
25
+    warn "If -b is not used, build is launched from last tag available"
26
+    warn "in the GitHub repo.  In that case, Release is '1' and Version"
27
+    warn "is deduced from the tag by removing the initial 'v'."
28
+    warn ""
29
+    warn "If -b is used, the project repo is temporarily clonded, and"
30
+    warn "both Version and Release are found by consulting git-describe"
31
+    warn "on the specified branch."
26 32
     exit 2
27 33
 }
28 34