Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / bin / genfiles
blob077e641180e85c59729ace6b2c8523e0135b9698
1 #! /bin/sh
3 # get configuration
4 . $WEBSTONEROOT/conf/testbed
6 cat $WEBSTONEROOT/conf/fileset |
7 nawk '
8 ($1 ~ /^[0-9][0-9]*[kK][bB]*$/) {
9 sub(/[kK][bB]*/, "", $1);
10 cmd = "$WEBSTONEROOT/bin/genrand " $1*1024 " " $2
11 print cmd;
12 system(cmd);
13 next
16 ($1 ~ /^[0-9][0-9]*[mM][bB]*$/) {
17 sub(/[kK][bB]*/, "", $1);
18 cmd = "$WEBSTONEROOT/bin/genrand " $1*1024*1024 " " $2
19 print cmd;
20 system(cmd);
21 next
24 ($1 ~ /^[0-9][0-9]*$/) {
25 sub(/[kK][bB]*/, "", $1);
26 cmd = "$WEBSTONEROOT/bin/genrand " $1 " " $2
27 print cmd;
28 system(cmd);
29 next
30 } ' $*
32 # copy files
33 files=`cat $WEBSTONEROOT/conf/fileset | cut -f2 -d' '`
34 for f in $files
36 $RCP $f $SERVER:$WEBDOCDIR
37 rm -f $f
38 done
40 #end