Command line utility for converting autogiro files to XML.
Install using phive:
phive install byrokrat/autogiro2xmlDownload the latest version from the github releases page.
Optionally rename autogiro2xml.phar to autogiro2xml for a smoother experience.
Install as a composer dependency:
composer require byrokrat/autogiro2xmlThis will make autogiro2xml avaliable as vendor/bin/autogiro2xml.
To build you need make
make
sudo make installThe build script uses composer to handle dependencies and phive to
handle build tools. If they are not installed as composer or phive
respectivly you can use something like
make COMPOSER_CMD=./composer.phar PHIVE_CMD=./phive.pharTransforming an autogiro file to XML.
autogiro2xml <filename>Works well with *nix streams and pipes.
cat filename | autogiro2xml > output.xmlValidate autogiro files using the --format=validate option.
autogiro2xml --format=validate <filename>You may pass multiple file or directory names.
autogiro2xml --format=validate /dir/with/ag/filesUse the --stop-on-failure option to stop processing once a broken file is found.
autogiro2xml --format=validate --stop-on-failure /dir/with/ag/filesParse a directory of autogiro files and save error descriptions
autogiro2xml --format=validate <dirname> 2> errors.txtFor the complete help see
autogiro2xml --help