File: getversion

package info (click to toggle)
xfishtank 3.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,440 kB
  • sloc: ansic: 4,379; sh: 1,499; xml: 419; makefile: 64
file content (5 lines) | stat: -rwxr-xr-x 150 bytes parent folder | download | duplicates (4)
1
2
3
4
5
#!/bin/sh
if [ -f configure.ac ] ; then
   version=`grep AC_INIT configure.ac | head -n 1 | sed 's/^[^[]*.//;s/^[^[]*.//;s/].*//'`
fi
echo "$version"