瀏覽代碼

Cache semver() output in .mkit/semver

Alois Mahdal 7 年之前
父節點
當前提交
982ef8cb31
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/include/facts.sh

+ 2
- 0
src/include/facts.sh 查看文件

154
     local commit        # commit indicator (CURRENT_BRANCH.gHASH)
154
     local commit        # commit indicator (CURRENT_BRANCH.gHASH)
155
     local dirty         # 0 if dirty, 1 if clean
155
     local dirty         # 0 if dirty, 1 if clean
156
     local suffix        # version suffix
156
     local suffix        # version suffix
157
+    local_get semver && return 0
157
     version=$(ini 1value project:version)
158
     version=$(ini 1value project:version)
158
     prerl=$(ini 1value project:prerl)
159
     prerl=$(ini 1value project:prerl)
159
     grep ":" <<<"$prerl" \
160
     grep ":" <<<"$prerl" \
178
         test -n "$prerl" && suffix="-$prerl$suffix"
179
         test -n "$prerl" && suffix="-$prerl$suffix"
179
         version="$version$suffix"
180
         version="$version$suffix"
180
     fi
181
     fi
182
+    local_putb semver <<<"$version"
181
     echo "$version"
183
     echo "$version"
182
 }
184
 }