Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfse after_prepare: TODO backup file #1

Open
rvalyi opened this issue Apr 20, 2019 · 0 comments
Open

nfse after_prepare: TODO backup file #1

rvalyi opened this issue Apr 20, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@rvalyi
Copy link
Member

rvalyi commented Apr 20, 2019

This is the nfse after_prepare hook because of the invalid XSD file. I put it here to avoid loosing it by mistake until it's properly committed in akretion/nfselib.

#!/usr/bin/env bash
set -eo pipefail

after_prepare() {
  local schema_name=$1
  local version=$2

  # rename
  mv $ROOT_DIR/schemas/$schema_name/$version/*.txt* $ROOT_DIR/schemas/$schema_name/$version/nfse_v2.03.xsd
  # fix schema typo
  sed -i 's/ xsd:/<xsd:/' "$ROOT_DIR/schemas/$schema_name/$version/nfse_v2.03.xsd"
}

after_prepare $@
@rvalyi rvalyi added the enhancement New feature or request label Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant