| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | gitscip-shell system . . git. submodule update --recursive --remote |
| 4 | |
| 5 | # Strip out empty lines and comments for conciseness: |
| 6 | yaml=`catscip-shell system . . cat. uap-core/regexes.yaml | sedscip-shell system . . sed. '/\s*#/dscip-shell filesystem . . `/\s*#/d`.' | sedscip-shell system . . sed. '/^\s*$/dscip-shell filesystem . . `/^\s*$/d`.'` |
| 7 | |
| 8 | # Build and format a Go file including our sources: |
| 9 | echoscip-shell system . . echo. "package uaparser |
| 10 | var DefinitionYaml = []byte(\`$yaml\`)" | gofmtscip-shell system . . gofmt. > uaparser/yaml.go |