File: getrev

package info (click to toggle)
rsynth 2.0-6
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 720 kB
  • ctags: 544
  • sloc: ansic: 5,535; sh: 1,249; makefile: 117
file content (8 lines) | stat: -rwxr-xr-x 138 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/bin/sh 
if test $# -gt 0; then
 dir=$1;
else
 dir=.
fi 
grep 'Revision:' ${dir}/Revision.c | sed 's/^.*Revision: *\([0-9.]*\).*$/\1/'