File: get_version.sh

package info (click to toggle)
libmodulemd 2.15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,180 kB
  • sloc: ansic: 37,927; python: 3,233; xml: 1,739; sh: 389; makefile: 42
file content (6 lines) | stat: -rwxr-xr-x 164 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
#!/usr/bin/env bash

SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SOURCE_DIR
grep "^version" meson.build | sed -e "s/[^']*'//" -e "s/'.*$//"