mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 07:18:35 +01:00
33 lines
717 B
Bash
Executable File
33 lines
717 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
source common.sh
|
|
|
|
dvc_create_repo
|
|
|
|
mkdir data/tsv
|
|
|
|
dvc_info 'Convert Budget.xml to tsv'
|
|
dvc run --code code/xmltotsv.py python code/xmltotsv.py --extract row/@Id,row/@UserId,row/@Name,row/@Class,row/@TagBased,row/@Date data/xml/Badges.xml data/tsv/Badges.tsv
|
|
|
|
dvc_info 'Modify code'
|
|
echo " " >> code/xmltotsv.py
|
|
git commit -am 'Change code'
|
|
|
|
dvc_info 'Reproduce tsv convertion code'
|
|
dvc repro data/tsv/Badges.tsv
|
|
|
|
dvc_info 'Modify code'
|
|
echo " " >> code/xmltotsv.py
|
|
git commit -am 'Change code'
|
|
|
|
dvc_info 'Set default target'
|
|
dvc config global.target data/tsv/Badges.tsv
|
|
git commit -am 'Set default target'
|
|
|
|
dvc_info 'Reproduce tsv convertion code as default target'
|
|
dvc repro
|
|
|
|
dvc_pass
|