mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-25 18:42:12 +01:00
24 lines
554 B
Diff
24 lines
554 B
Diff
--- a/version.sh
|
|
+++ b/version.sh
|
|
@@ -1,18 +1,2 @@
|
|
-#!/usr/bin/env bash
|
|
-cd `dirname "$0"`
|
|
-if [ -d ".git" ] ; then
|
|
- v=`git describe`
|
|
- echo "$v" | grep -qv '^beta-' && v=`git describe --match '[0-9]*'`
|
|
- [ -z "$v" ] && v=`git describe --match 'beta-[0-9]*'`
|
|
- v=${v/-/.}
|
|
- v="${v/-/\~}"
|
|
- printf $v > version
|
|
- if echo $v | grep -qv '~' ; then
|
|
- printf $v > release_version
|
|
- fi
|
|
-elif [ -f version ] ; then
|
|
- v=`cat version`
|
|
-else
|
|
- v=`cat release_version`
|
|
-fi
|
|
-printf "${v/beta./}"
|
|
+#!/bin/sh
|
|
+cat release_version
|