Browse Source

Make reldst optional

No need to bug everybody with relsrc/reldst
Alois Mahdal 9 years ago
parent
commit
2b26c1c7f5
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      src/include/release.sh

+ 8
- 1
src/include/release.sh View File

85
     #
85
     #
86
     local rlevel=$1
86
     local rlevel=$1
87
     local newtag
87
     local newtag
88
+    local reldst
88
 
89
 
89
     _relck git_present
90
     _relck git_present
90
     _relck at_relsrc
91
     _relck at_relsrc
99
     debug_var newtag
100
     debug_var newtag
100
     $MKIT_DRY && return
101
     $MKIT_DRY && return
101
     git tag -m "$(ini 1value project:name) $newtag - $CODENAME" "$newtag"
102
     git tag -m "$(ini 1value project:name) $newtag - $CODENAME" "$newtag"
102
-    git branch -f "$(ini 1value project:reldst)" "$newtag"
103
+
104
+    reldst=$(ini 1value project:reldst)
105
+    debug_var reldst
106
+    if test -n "$reldst";
107
+    then
108
+        git branch -f "$reldst" "$newtag"
109
+    fi
103
 }
110
 }
104
 
111
 
105
 _vbump() {
112
 _vbump() {