File: commit-version.sh

package info (click to toggle)
motion 3.2.12%2Bgit20140228-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,240 kB
  • ctags: 2,370
  • sloc: ansic: 25,224; makefile: 687; sh: 278
file content (5 lines) | stat: -rwxr-xr-x 166 bytes parent folder | download
1
2
3
4
5
#!/bin/sh

SNV_VERSION=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
SNV_VERSION=`expr $SNV_VERSION + 1`
echo -n "trunkREV$SNV_VERSION"