blob: b4f09785d3625a1654f8f9c801f8fffce0df5d40 (
plain)
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
|
#!/bin/sh
target="$1"
closures="$2"
rm -f $target-t $target && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo; \
counter=0; \
while test $counter -lt $closures; do \
echo "P11_VIRTUAL_FIXED_FUNCTIONS($counter)"; \
counter=`expr $counter + 1`; \
done; \
echo; \
echo "CK_FUNCTION_LIST p11_virtual_fixed[P11_VIRTUAL_MAX_FIXED] = {"; \
counter=0; \
while test $counter -lt $closures; do \
echo " P11_VIRTUAL_FIXED_INITIALIZER($counter),"; \
counter=`expr $counter + 1`; \
done; \
echo '};'; \
echo; \
counter=0; \
while test $counter -lt $closures; do \
echo "P11_VIRTUAL_FIXED_GET_FUNCTION_LIST($counter)"; \
counter=`expr $counter + 1`; \
done; \
} > $target-t && mv -f $target-t $target
|