File: get_version.sh

package info (click to toggle)
libmodulemd 2.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,152 kB
  • sloc: ansic: 37,845; python: 3,236; xml: 1,739; sh: 377; makefile: 42
file content (6 lines) | stat: -rwxr-xr-x 164 bytes parent folder | download | duplicates (3)
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/'.*$//"