File: version.sh

package info (click to toggle)
gtkpod 2.1.5-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 19,428 kB
  • ctags: 6,307
  • sloc: ansic: 51,604; xml: 16,135; sh: 11,916; cpp: 7,545; perl: 1,449; makefile: 1,376; lex: 638; awk: 73; python: 35
file content (15 lines) | stat: -rwxr-xr-x 239 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [ -d .git ]; then
  COMMIT=`git rev-parse --short HEAD`

  # Use this line for unstable dev builds
  REVISION="2.1.5~${COMMIT}"

  # Use this line for releases
  REVISION="2.1.5"

  echo $REVISION > version
fi

cat version