]> err.no Git - sope/blob - sope-appserver/samples/iCalPortal/mkpage.sh
8cdccfb69a4cf290900b41619fcd13207d2a82c5
[sope] / sope-appserver / samples / iCalPortal / mkpage.sh
1 #!/bin/sh
2
3 pgname="$1"
4 actname=`echo "$pgname"|sed "s|Page|Action|g"`
5
6 mfile="$pgname.m"
7 woxfile="$pgname.wox"
8
9 echo "// \$Id\$
10
11 #include <NGObjWeb/WOComponent.h>
12 #include <NGObjWeb/WODirectAction.h>
13
14 @interface $pgname : WOComponent
15 {
16 }
17
18 @end
19
20 @interface $actname : WODirectAction
21 @end
22
23 #include \"common.h\"
24
25 @implementation $pgname
26
27 - (void)dealloc {
28   [super dealloc];
29 }
30
31 /* accessors */
32
33 /* actions */
34
35 @end /* $pgname */
36
37 @implementation $actname
38 @end /* $actname */
39 " >$mfile
40
41 echo "<?xml version='1.0' standalone='yes'?>
42
43 <var:component className='iCalPortalFrame' title='localizedTitle'
44                xmlns='http://www.w3.org/1999/xhtml'
45                xmlns:var='http://www.skyrix.com/od/binding'
46                xmlns:const='http://www.skyrix.com/od/constant'>
47
48   Page: $pgname
49
50 </var:component>
51 " >$woxfile