rename gen_etl_graph* codes to sh/* dir

This commit is contained in:
ImreSamu
2016-11-10 21:08:43 +01:00
parent 2a0ef3a953
commit 34afba471f
13 changed files with 0 additions and 0 deletions

19
sh/gen_etl_graph_landuse.sh Executable file
View File

@@ -0,0 +1,19 @@
DOT=landuse.dot
echo "digraph G
{
rankdir=LR;
" > $DOT
cat ./layers/landuse/mapping.yaml | grep "# etldoc:" | sed 's/# etldoc://g' >>$DOT
cat ./layers/landuse/landuse.sql | grep "\-\- etldoc:" | sed 's/-- etldoc://g' >>$DOT
echo "
}
" >> $DOT
cat $DOT
dot -Tpng $DOT > layer_landuse_etl.png