File: version.sh

package info (click to toggle)
ffmpeg2theora 0.30-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 596 kB
  • ctags: 526
  • sloc: ansic: 5,810; python: 1,021; sh: 83; makefile: 21; xml: 1
file content (8 lines) | stat: -rwxr-xr-x 179 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/bin/bash
cd `dirname $0`
version='0.29'
test -e .git && git=`which git`
if [ "x$git" != "x" ]; then
    version=$(cd "$1" && git describe --tags 2> /dev/null)
fi
echo $version