File: checkMetadata.sh

package info (click to toggle)
waycheck 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188 kB
  • sloc: cpp: 637; xml: 230; sh: 45; makefile: 3
file content (13 lines) | stat: -rwxr-xr-x 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env sh

METAINFO_VERSION=$(grep "release version=" resources/dev.serebit.Waycheck.metainfo.xml | head -n1 | cut -d'"' -f2)
METAINFO_URL_VERSION=$(grep "waycheck/-/releases" resources/dev.serebit.Waycheck.metainfo.xml | head -n1 | cut -d'/' -f8 | cut -d'<' -f1)
MESON_VERSION=$(grep "version:" meson.build | head -n1 | cut -d"'" -f2)

if [ "$METAINFO_VERSION" != "$MESON_VERSION" ]; then
  exit 1
fi

if [ "$METAINFO_URL_VERSION" != "v$MESON_VERSION" ]; then
  exit 2
fi