From 50313b0bfd3002658e8fbb22112ad271b0131f94 Mon Sep 17 00:00:00 2001 From: skeezix Date: Sat, 10 Oct 2009 12:49:09 -0400 Subject: [PATCH] Updating to vimacs current pair of scripts - genpxml and pnd_make --- testdata/scripts/genpxml.sh | 49 +++++++++++++++++++++++------------- testdata/scripts/pnd_make.sh | 9 ++++--- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git a/testdata/scripts/genpxml.sh b/testdata/scripts/genpxml.sh index 84392fb..dd0aa8e 100755 --- a/testdata/scripts/genpxml.sh +++ b/testdata/scripts/genpxml.sh @@ -7,30 +7,43 @@ if [ -x $x ] && [ ! -d $x ]; then exe=$x; break; fi done BASENAMEnoex=$(basename "$exe" | cut -d'.' -f1) BASENAME=$(basename "$exe") +rnd=$RANDOM; +loc=$(dirname "$0") -rnd=$(dd if=/dev/random count=10 bs=1 | hexdump | cut -d \ -f 2-| head -n 1 | tr -d " ") +echo ' + + + '$BASENAMEnoex' + '$BASENAMEnoex' - German (lol!) -echo ' - - - <en>'$BASENAMEnoex'</en> - + -'$rnd' + en_US Automatically generated pxml from'$(pwd)' exe='$BASENAME' + de_DE Automatisch generiertes pxml aus'$(pwd)' exe='$BASENAME' -NO + ' +for image in $(file -i -0 * | grep -a image | cut -d" " -f1) +do +echo "" +done +echo ' - - Automatically generated pxml from'$(pwd)' exe='$BASENAME' - + -'$BASENAME' + + - -
Main category
- Subcategory 1 - Subcategory 2 -
+ + + + + + + + + +
-' \ No newline at end of file +' diff --git a/testdata/scripts/pnd_make.sh b/testdata/scripts/pnd_make.sh index 0794b34..2586ac6 100755 --- a/testdata/scripts/pnd_make.sh +++ b/testdata/scripts/pnd_make.sh @@ -19,17 +19,17 @@ while true ; do esac done -rnd=$RANDOM%10; # random number for genpxml and index$rnd.xml +rnd=$RANDOM; # random number for genpxml and index$rnd.xml if [ $PXML = "guess" ] && [ $PNDNAME ] && [ $FOLDER ]; then - PXMLtxt=$(/usr/pandora/scripts $FOLDER) + PXMLtxt=$(~/pndtest/genxml.sh $FOLDER $ICON) PXML=tmp$rnd.pxml echo "$PXMLtxt" > tmp$rnd.pxml fi if [ ! $PNDNAME ] || [ ! $FOLDER ] || [ ! $PXML ]; then echo " Usage: pnd_make.sh -p your.pnd -d folder/containing/your/app/ -x - your.pxml (or \"guess\" to try to generate it from the folder) other files to append" + your.pxml (or \"guess\" to try to generate it from the folder) -i icon.png" exit 1 fi @@ -54,4 +54,5 @@ fi if [ $PXML = "guess" ];then rm tmp$rnd.pxml; fi -#printf %08d $pxmlstart >> $PNDNAME #append end of iso/start of pxml offset \ No newline at end of file +#printf %08d $pxmlstart >> $PNDNAME #append end of iso/start of pxml offset + -- 2.39.2