File: update_node_source.sh

package info (click to toggle)
whitedune 0.30.10-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 42,004 kB
  • sloc: cpp: 116,017; ansic: 79,688; java: 20,101; sh: 3,248; yacc: 2,902; makefile: 1,717; lex: 848; awk: 363; perl: 270; objc: 143; lisp: 112; python: 22
file content (55 lines) | stat: -rwxr-xr-x 955 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh

EXECDIR=`dirname $0`

# generate templates of sourcefiles for not already existing nodes in white_dune
# from X3D specification component html files

if test "X_$CURRENT_X3D_URL" = "X_" ; then
   CURRENT_X3D_URL=http://www.web3d.org/x3d/specifications/ISO-IEC-19775-1.2-X3D-AbstractSpecification
# reading from local stored standard
#   CURRENT_X3D_URL=../../ISO-IEC-19775-1.2-X3D-AbstractSpecification
fi

COMPONENTS=" \
CADGeometry \
core \
dis \
env_texture \
enveffects \
envsensor \
followers \
geodata \
geometry2D \
geometry3D \
group \
hanim \
interp \
keyboard \
layering \
layout \
lighting \
navigation \
networking \
nurbs \
particle_systems \
picking \
pointingsensor \
rendering \
rigid_physics \
scripting \
shaders \
shape \
sound \
text \
texture3D \
texturing \
time \
utils" 

for i in $COMPONENTS ; do
   lynx -dump $CURRENT_X3D_URL/Part01/components/$i.html | 
   awk -v path=$EXECDIR/ -f $EXECDIR/mknodesource.awk 
done