소스 검색

Move RELSRC and RELDST parameters to mkit.ini

Alois Mahdal 9 년 전
부모
커밋
8c65327f70
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 2
    0
      mkit.ini
  2. 4
    3
      src/include/release.sh

+ 2
- 0
mkit.ini 파일 보기

10
     name = Mkit
10
     name = Mkit
11
     pkgname = mkit
11
     pkgname = mkit
12
     tagline = simple install helper
12
     tagline = simple install helper
13
+    relsrc = master
14
+    reldst = last
13
 
15
 
14
 [lists]
16
 [lists]
15
 
17
 

+ 4
- 3
src/include/release.sh 파일 보기

12
              || die "cannot do this outside git repo"
12
              || die "cannot do this outside git repo"
13
             ;;
13
             ;;
14
         norelbr)
14
         norelbr)
15
+            local relsrc=$(ini 1value project:relsrc)
15
             __git_info curbranch \
16
             __git_info curbranch \
16
-              | grep -qFx "$RELSRC" \
17
-             || die "you are not on RELSRC branch: $RELSRC"
17
+              | grep -qFx "$relsrc" \
18
+             || die "you are not on release source branch: $relsrc"
18
             ;;
19
             ;;
19
         dirty)
20
         dirty)
20
             git diff --shortstat 2>/dev/null \
21
             git diff --shortstat 2>/dev/null \
113
     debug_var newtag
114
     debug_var newtag
114
     $MKIT_DRY && return
115
     $MKIT_DRY && return
115
     git tag -m "$MKIT_PROJ_NAME $newtag - $CODENAME" "$newtag"
116
     git tag -m "$MKIT_PROJ_NAME $newtag - $CODENAME" "$newtag"
116
-    git branch -f "$RELDST" "$newtag"
117
+    git branch -f "$(ini 1value project:reldst)" "$newtag"
117
 }
118
 }
118
 
119
 
119
 __git_msg_vbump() {
120
 __git_msg_vbump() {