Add helper script for debugging

This commit is contained in:
Martin Aspeli
2017-01-01 21:25:08 +00:00
parent b58d5703ef
commit bd4fc4df55
2 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
.DS_Store .DS_Store
node_modules node_modules
*.log *.log
extract/
checkouts checkouts
public-optimized *.xlsx
test.sql
.idea/.name .idea/.name
.idea/encodings.xml .idea/encodings.xml
.idea/misc.xml .idea/misc.xml
Executable
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Helper script to extract test files to make them easier to visually inspect
mkdir extract
for x in *.xlsx ; do
rm -r extract/$x
mkdir extract/$x
cd extract/$x
unzip ../../$x
for f in $(find . -name '*.xml') ; do
mv $f $f.old
xmllint --format $f.old > $f
rm $f.old
done
cd ../..
done