firefly-rk3399 | X.Org | accelerati

      2 week ago

    firefly-rk3288 | turbo-mode

      5 mon ago

   firefly-rk3288 | 4.4.50 | slackware

      5 mon ago

   upstream | virualbox

      5 mon ago

   get_version | git | mercurial

      6 mon ago

   slackware | rc.zram

      6 mon ago

   firefly-rk3288 | 4.4.41 | slackware

      6 mon ago

    firefly-rk3288 | 4.x | slackware |

      7 mon ago

   slackware | X Server 1.19.0 | armsoc

      8 mon ago

   u-boot | mainstream | firefly-rk3288

      8 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)"
}