File: version-check

package info (click to toggle)
cppi 1.18-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,936 kB
  • sloc: ansic: 12,443; sh: 7,551; lex: 850; perl: 173; makefile: 47; sed: 16
file content (7 lines) | stat: -rwxr-xr-x 153 bytes parent folder | download
1
2
3
4
5
6
7
#!/bin/sh
# Make sure that we're not running a binary with a different version.

case `cppi --version | sed 1q` in
  *' '$VERSION) ;;
  *) exit 1;;
esac