From 7e8bd11ea9f05320c37e96de03b2ac4e12c6c0ff Mon Sep 17 00:00:00 2001 From: Nikolay Pultsin Date: Thu, 12 Apr 2012 14:57:29 +0200 Subject: [PATCH] updated resources checking scripts --- .gitignore | 2 ++ {resources => scripts/resources}/clean.xslt | 0 {resources => scripts/resources}/stats.sh | 0 {resources => scripts/resources}/update.sh | 4 ++-- 4 files changed, 4 insertions(+), 2 deletions(-) rename {resources => scripts/resources}/clean.xslt (100%) rename {resources => scripts/resources}/stats.sh (100%) rename {resources => scripts/resources}/update.sh (61%) diff --git a/.gitignore b/.gitignore index 55ba5ae03..c30908b29 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,9 @@ bin/ gen/ res/drawable/ res/raw/ +scripts/resources/*.diff obj/ +epubs/ .classpath .settings *.so diff --git a/resources/clean.xslt b/scripts/resources/clean.xslt similarity index 100% rename from resources/clean.xslt rename to scripts/resources/clean.xslt diff --git a/resources/stats.sh b/scripts/resources/stats.sh similarity index 100% rename from resources/stats.sh rename to scripts/resources/stats.sh diff --git a/resources/update.sh b/scripts/resources/update.sh similarity index 61% rename from resources/update.sh rename to scripts/resources/update.sh index f2c363b2c..787ca5841 100755 --- a/resources/update.sh +++ b/scripts/resources/update.sh @@ -6,10 +6,10 @@ else part=$1 fi -for file in ../assets/resources/$part/*.xml; do +for file in ../../assets/resources/$part/*.xml; do xsltproc clean.xslt $file > `basename $file`; done for file in *.xml; do - diff $file en.xml > $file.diff; + diff $file en.xml > `basename $file .xml`.diff; done rm *.xml