-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwork.sh
20 lines (16 loc) · 1.83 KB
/
work.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -x
#
cat /dev/null > ./results/missingtranslation.txt
cat /dev/null > ./results/missingcenter.txt
grep -h -e '<'HAnimSite /c/x3d-codes/www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4.x3d ./results/DonHumanoid.x3d ./standards/HAnimModelFootLeft.x3d ./standards/HAnimModelFootRight.x3d ./standards/HAnimModelHandLeft.x3d ./standards/HAnimModelHandRight.x3d | grep -v USE|grep -v translation| sort -u >> ./results/missingtranslation.txt
grep -h -e '<'HAnimJoint /c/x3d-codes/www.web3d.org/x3d/content/examples/HumanoidAnimation/Characters/JinLOA4.x3d ./results/DonHumanoid.x3d ./standards/HAnimModelFootLeft.x3d ./standards/HAnimModelFootRight.x3d ./standards/HAnimModelHandLeft.x3d ./standards/HAnimModelHandRight.x3d |grep -v USE|grep -v center | sort -u >> ./results/missingcenter.txt
sed "s/.*name='\([^']*\)'>/\1/" ./results/missingcenter.txt > ./results/findthesecenters.txt
sed "s/.*name='\([^']*\)'>/\1/" ./results/missingtranslation.txt > ./results/findthesetranslations.txt
sed -e 's/_tip$//' -e 's/_pt$//' ./results/findthesetranslations.txt > ./results/findthesetranslationsnotipnopt.txt
fgrep -f ./results/findthesetranslationsnotipnopt.txt /c/x3d-code/www.web3d.org/specifications/X3dUnifiedObjectModel-4.0.xml|grep value=|sort -u | sed 's/.*=//'| sed 's/"//g' > ./results/findthesetranslationsraw.txt
sort -u ./results/findthesecenters.txt > ./results/sortedcenters.txt
sort -u ./results/findthesetranslationsraw.txt > ./results/sortedtranslations.txt
echo "XML name attribute | name in file | default value (possibly none)" > ./results/FinalResult.txt
python ../hier2x3d/loa4.py | sort -u >>./results/FinalResult.txt
fgrep -f ./results/loa4defaulted.txt ./results/loa4nodefault.txt |sort -u > ./results/loa4both.txt
cat ./results/FinalResult.txt|grep -v = |sed 's/ .*//'|sort -u|grep -v XML > ./results/JointsSegments.txt