File: version.sh

package info (click to toggle)
ecflow 5.13.8-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 51,304 kB
  • sloc: cpp: 259,208; python: 22,228; sh: 3,216; perl: 770; xml: 333; f90: 199; ansic: 141; makefile: 71
file content (7 lines) | stat: -rwxr-xr-x 424 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
release=$(cat ACore/src/ecflow_version.h | grep 'ECFLOW_RELEASE' | awk '{print $3}'| sed 's/["]//g')
major=$(cat ACore/src/ecflow_version.h   | grep 'ECFLOW_MAJOR'   | awk '{print $3}'| sed 's/["]//g')
minor=$(cat ACore/src/ecflow_version.h   | grep 'ECFLOW_MINOR'   | awk '{print $3}'| sed 's/["]//g')
ecflow_version=$release.$major.$minor

# use tr -d '\12' to remove trailing newline
echo "$ecflow_version" | tr -d '\12'