CajeJbAfDChpNZgQ

      25 min ago

   yvUXOiQVaEMlDuQ

      25 min ago

   MYvDdvthmFr

      25 min ago

   OZFeKHXECQTn

      25 min ago

   CNkHtbxhru

      25 min ago

   Orange Pi Plus 2E | slackware | 4.14.

      1 mon ago

    firefly-rk3399 | X.Org | accelerati

      5 mon ago

    firefly-rk3288 | turbo-mode

      10 mon ago

   firefly-rk3288 | 4.4.50 | slackware

      10 mon ago

   upstream | virualbox

      11 mon ago

embedded link

get_version | git | mercurial

  07 фев 2017 20:05:21      0.32 kb      never
raw

  Bash


#!/usr/bin/bash

if [[ -z "$1" ]]; then
    exit
fi

# Git
git_pkgver() {
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

# Mercurial
hg_pkgver() {
  printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}