git.openpandora.org
/
pandora-libraries.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated support scripts
[pandora-libraries.git]
/
testdata
/
scripts
/
genpxml.sh
diff --git
a/testdata/scripts/genpxml.sh
b/testdata/scripts/genpxml.sh
index
dd0aa8e
..
8a2af03
100755
(executable)
--- a/
testdata/scripts/genpxml.sh
+++ b/
testdata/scripts/genpxml.sh
@@
-12,8
+12,7
@@
loc=$(dirname "$0")
echo '
<?xml version="1.0" encoding="UTF-8"?>
echo '
<?xml version="1.0" encoding="UTF-8"?>
-<PXML xmlns="http://openpandora.org/namespaces/PXML"
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="'$BASENAME-$rnd'" xsi:noNamespaceSchemaLocation="PXML_schema.xsd">
+<PXML xmlns="http://openpandora.org/namespaces/PXML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="'$BASENAME-$rnd'" xsi:noNamespaceSchemaLocation="PXML_schema.xsd">
<title lang="en_US">'$BASENAMEnoex'</title>
<title lang="de_DE">'$BASENAMEnoex' - German (lol!)</title>
<title lang="en_US">'$BASENAMEnoex'</title>
<title lang="de_DE">'$BASENAMEnoex' - German (lol!)</title>
@@
-23,6
+22,7
@@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="'$BASENAME-$rnd'" xsi:
<description lang="de_DE">de_DE Automatisch generiertes pxml aus'$(pwd)' exe='$BASENAME'</description>
<previewpics>'
<description lang="de_DE">de_DE Automatisch generiertes pxml aus'$(pwd)' exe='$BASENAME'</description>
<previewpics>'
+#add all images in the folder as preview pics
for image in $(file -i -0 * | grep -a image | cut -d" " -f1)
do
echo "<pic src="$image"/>"
for image in $(file -i -0 * | grep -a image | cut -d" " -f1)
do
echo "<pic src="$image"/>"
@@
-46,4
+46,4
@@
echo ' </previewpics>
<clockspeed frequency="600"/><!--Frequency in Hz-->
</PXML>
<clockspeed frequency="600"/><!--Frequency in Hz-->
</PXML>
-'
+'
\ No newline at end of file