mirror of
https://github.com/optilude/xlsx-template.git
synced 2026-07-02 00:17:39 +08:00
Add helper script for debugging
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
*.log
|
||||
extract/
|
||||
checkouts
|
||||
public-optimized
|
||||
test.sql
|
||||
*.xlsx
|
||||
.idea/.name
|
||||
.idea/encodings.xml
|
||||
.idea/misc.xml
|
||||
|
||||
Executable
+24
@@ -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
|
||||
Reference in New Issue
Block a user