File: build.sh

package info (click to toggle)
golang-github-ua-parser-uap-go 0.0~git20211112.00c877e-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,872 kB
  • sloc: makefile: 5; sh: 4
file content (10 lines) | stat: -rwxr-xr-x 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

git submodule update --recursive --remote

# Strip out empty lines and comments for conciseness:
yaml=`cat uap-core/regexes.yaml | sed '/\s*#/d' | sed '/^\s*$/d'`

# Build and format a Go file including our sources:
echo "package uaparser
var DefinitionYaml = []byte(\`$yaml\`)" | gofmt > uaparser/yaml.go