mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
25 lines
458 B
Bash
Executable file
25 lines
458 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
cd $(realpath $(dirname $0))
|
|
|
|
src="transport-apis/data"
|
|
|
|
query="{\
|
|
auth: {
|
|
type: \"AID\",
|
|
aid: .options.auth.aid?, \
|
|
}, \
|
|
salt: .options.checksumSalt, \
|
|
client: {
|
|
type: .options.client.type?, \
|
|
id: .options.client.id?, \
|
|
v: .options.client.v?, \
|
|
name: .options.client.name?, \
|
|
}, \
|
|
endpoint: .options.endpoint, \
|
|
ext: .options.ext, \
|
|
ver: .options.version, \
|
|
}"
|
|
|
|
jq -r --tab "$query" <"$src/de/db-hafas-mgate.json" >../p/db/base.json
|