Added some here prints.

This commit is contained in:
Thomas Gideon 2010-11-09 11:44:44 -05:00
parent f9158553ad
commit 64582c47b7

View file

@ -34,13 +34,16 @@ shift
target=$1 target=$1
# copy .gz file based on arg # copy .gz file based on arg
cp "$src" ./contents.xml.gz cp "$src" ./contents.xml.gz
echo "Copied $src to ./contents.xml.gz"
# gunzip original file # gunzip original file
gunzip contents.xml.gz gunzip contents.xml.gz
echo "Gunzipped contents.xml.gz"
# makes sure the ns is only on one line, also # makes sure the ns is only on one line, also
# makes the interim file more readable for debugging # makes the interim file more readable for debugging
tidy -config tidyrc -xml -m contents.xml tidy -config tidyrc -xml -m contents.xml
echo "Tidied contents.xml"
# xalan doesn't handle ns well, stripp them # xalan doesn't handle ns well, stripp them
sed -e "s/ xmlns=\".*\"//g" -i contents.xml sed -e "s/ xmlns=\".*\"//g" -i contents.xml
@ -65,4 +68,4 @@ sed -e "s/^6/ /" -i contents.txt
# snug the result where requested # snug the result where requested
mv contents.txt "$target" mv contents.txt "$target"
# clean up the temporary files # clean up the temporary files
rm contents.xml #rm contents.xml