File: CreateVersionFile.sh

package info (click to toggle)
libavg 1.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,820 kB
  • sloc: cpp: 58,987; python: 12,754; sh: 10,318; ansic: 780; makefile: 409
file content (15 lines) | stat: -rwxr-xr-x 251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ -z "$1" ]
then
    echo "$0 <outpath>"
elif which svn >/dev/null
then
    if [ -d .svn ]
    then
        LC_ALL=C svn info >"$1/version.txt"
    else
        REL=$(basename $PWD)
        echo "Version: $REL" >$1/version.txt
    fi
fi