Develop and Download Open Source Software

Browse CVS Repository

Contents of /h14m/hns/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download)
Mon May 17 12:35:35 1999 UTC (24 years, 11 months ago) by kenji
Branch: MAIN
CVS Tags: hns-103-pl2, HEAD
Changes since 1.6: +4 -4 lines
hns-1.03-pl2

1 ###############################################################
2 ## Makefile for hns 1.0.3
3 ##
4
5 NIKKITITLE = HNS: Hoge's Diary
6 USERMAIL = hoge@foo.bar.jp # for web diary page
7 DIARYMAIL = hoge@foo.bar.jp # To: address for mail2nikki
8 FROMADDR = hoge\\@foo.bar.jp # From: address for mail2nikki
9 PASSWORD = hirakegoma # password to update for mail2nikki
10 UNAGIUSE = OFF # ON if want Namazu for hns Form
11 MYDIARYURI = http://www.foo.bar.jp/~hoge/diary/ # diary URI
12 THEMEF = OFF # use theme? ON/OFF
13 THEME = ruribaka # theme name
14
15 PERL_PATH = /usr/local/bin/perl
16 SENDMAIL_PATH = /usr/sbin/sendmail
17 NKF_PATH = /usr/local/bin/nkf
18
19 HOMEDIR = $(HOME)
20 DIARYDIR = $(HOMEDIR)/diary
21 HTMLDIR = $(HOMEDIR)/public_html/diary
22 CONFDIR = $(DIARYDIR)/conf
23 LOGDIR = $(DIARYDIR)/log
24 BINDIR = $(DIARYDIR)/bin
25 ICONDIR = $(HTMLDIR)/icons
26 CATDIR = $(HTMLDIR)/cat
27
28 TARGET = config.php3 config.phtml web2nikki.php3 web2nikki.phtml mail2nikki.pl log.cgi title.cgi
29
30
31 all: $(TARGET)
32
33 config.phtml:
34 rm -f public_html/diary_phpfi/$@
35 sed -e "s!%NIKKITITLE%!$(NIKKITITLE)!g" \
36 -e 's!%USERMAIL%!$(USERMAIL)!g' \
37 -e 's!%DIARYDIR%!$(DIARYDIR)!g' \
38 -e 's!%UNAGIUSE%!$(UNAGIUSE)!g' \
39 -e 's!%MYDIARYURI%!$(MYDIARYURI)!g' \
40 -e 's!%THEMEFLAG%!$(THEMEF)!g' \
41 -e 's!%THEME%!$(THEME)!g' \
42 public_html/diary_phpfi/config.phtml.in > public_html/diary_phpfi/$@
43
44 config.php3:
45 rm -f public_html/diary_php3/$@
46 sed -e "s!%NIKKITITLE%!$(NIKKITITLE)!g" \
47 -e 's!%USERMAIL%!$(USERMAIL)!g' \
48 -e 's!%DIARYDIR%!$(DIARYDIR)!g' \
49 -e 's!%UNAGIUSE%!$(UNAGIUSE)!g' \
50 -e 's!%MYDIARYURI%!$(MYDIARYURI)!g' \
51 -e 's!%THEMEFLAG%!$(THEMEF)!g' \
52 -e 's!%THEME%!$(THEME)!g' \
53 public_html/diary_php3/config.php3.in > public_html/diary_php3/$@
54
55 web2nikki.phtml:
56 rm -f public_html/diary_phpfi/$@
57 sed -e 's!%DIARYMAIL%!$(DIARYMAIL)!g' \
58 -e 's!%FROMADDR%!$(FROMADDR)!g' \
59 -e 's!\\\@!\@!' \
60 public_html/diary_phpfi/web2nikki.phtml.in > public_html/diary_phpfi/$@
61
62 web2nikki.php3:
63 rm -f public_html/diary_php3/$@
64 sed -e 's!%DIARYMAIL%!$(DIARYMAIL)!g' \
65 -e 's!%FROMADDR%!$(FROMADDR)!g' \
66 -e 's!\\\@!\@!' \
67 public_html/diary_php3/web2nikki.php3.in > public_html/diary_php3/$@
68
69 log.cgi:
70 rm -f tools/log.cgi/$@
71 sed -e 's!%PERL_PATH%!$(PERL_PATH)!g' \
72 -e 's!%DIARYDIR%!$(DIARYDIR)!g' \
73 tools/log.cgi/log.pl > tools/log.cgi/$@
74
75 mail2nikki.pl:
76 rm -f tools/mail2nikki/$@
77 sed -e 's!%PERL_PATH%!$(PERL_PATH)!g' \
78 -e 's!%DIARYDIR%!$(DIARYDIR)!g' \
79 -e 's!%FROMADDR%!$(FROMADDR)!g' \
80 -e 's!%PASSWORD%!$(PASSWORD)!g' \
81 -e 's!%SENDMAIL_PATH%!$(SENDMAIL_PATH)!g' \
82 -e 's!%NKF_PATH%!$(NKF_PATH)!g' \
83 tools/mail2nikki/mail2nikki.pl.in > tools/mail2nikki/$@
84
85 title.cgi:
86 rm -f tools/title.cgi/$@
87 sed -e 's!%PERL_PATH%!$(PERL_PATH)!g' \
88 -e 's!%DIARYDIR%!$(DIARYDIR)!g' \
89 -e 's!%HTMLDIR%!$(HTMLDIR)!g' \
90 -e 's!%NKF_PATH%!$(NKF_PATH)!g' \
91 tools/title.cgi/title.pl > tools/title.cgi/$@
92
93 install_file: all
94 if [ ! -d $(DIARYDIR) ]; then \
95 mkdir -p $(DIARYDIR); \
96 fi
97 if [ ! -d $(DIARYDIR)/mail ]; then \
98 mkdir -p $(DIARYDIR)/mail; \
99 fi
100 chmod 700 $(DIARYDIR)/mail
101 if [ ! -d $(HTMLDIR) ]; then \
102 mkdir -p $(HTMLDIR); \
103 fi
104 if [ ! -d $(CONFDIR) ]; then \
105 mkdir -p $(CONFDIR); \
106 fi
107 if [ ! -d $(LOGDIR) ]; then \
108 mkdir -p $(LOGDIR); \
109 fi
110 if [ ! -d $(BINDIR) ]; then \
111 mkdir -p $(BINDIR); \
112 fi
113 if [ ! -d $(ICONDIR) ]; then \
114 mkdir -p $(ICONDIR); \
115 fi
116 if [ ! -d $(CATDIR) ]; then \
117 mkdir -p $(CATDIR); \
118 fi
119
120 touch $(CONFDIR)/head.txt
121 touch $(CONFDIR)/foot.txt
122 if [ -f $(CONFDIR)/robotlist.txt ]; then \
123 mv $(CONFDIR)/robotlist.txt $(CONFDIR)/robotlist.txt-old; \
124 fi
125 cp -p diary/conf/robotlist.txt $(CONFDIR)
126 if [ -f $(CONFDIR)/no_table_browser.txt ]; then \
127 mv $(CONFDIR)/no_table_browser.txt $(CONFDIR)/no_table_browser.txt-old; \
128 fi
129 cp -p diary/conf/no_table_browser.txt $(CONFDIR)
130 touch $(CONFDIR)/ruri_map.txt
131 touch $(CONFDIR)/auth_ruri.txt
132 touch $(CONFDIR)/rlink.txt
133 touch $(CONFDIR)/alias.txt
134
135 touch $(LOGDIR)/LastModified
136 chmod 646 $(LOGDIR)/LastModified
137 touch $(LOGDIR)/cookie_log
138 chmod 646 $(LOGDIR)/cookie_log
139 touch $(LOGDIR)/referer_log
140 chmod 646 $(LOGDIR)/referer_log
141 touch $(LOGDIR)/message-by-user.txt
142 chmod 646 $(LOGDIR)/message-by-user.txt
143 touch $(LOGDIR)/ruri-map-by-user.txt
144 chmod 646 $(LOGDIR)/ruri-map-by-user.txt
145 touch $(LOGDIR)/dns_cache
146 chmod 646 $(LOGDIR)/dns_cache
147 touch $(LOGDIR)/link_log
148 chmod 646 $(LOGDIR)/link_log
149
150 if [ -f $(BINDIR)/mail2nikki.pl ]; then \
151 mv $(BINDIR)/mail2nikki.pl $(BINDIR)/mail2nikki.pl-old; \
152 fi
153 cp -p tools/mail2nikki/mail2nikki.pl $(BINDIR)
154 chmod 700 $(BINDIR)/mail2nikki.pl
155
156 cp -p tools/title.cgi/title.cgi $(HTMLDIR)
157 chmod 705 $(HTMLDIR)/title.cgi
158 cp -p tools/log.cgi/log.cgi $(HTMLDIR)
159 chmod 705 $(HTMLDIR)/log.cgi
160
161 cp -p public_html/diary/icons/*.* $(ICONDIR)
162 cp -pr public_html/diary/anti-windoze $(HTMLDIR)
163 cp -pr public_html/diary/ruribaka $(HTMLDIR)
164 touch $(CATDIR)/cat.txt
165 cp -p public_html/diary/cat/*.gif $(CATDIR)
166
167 if [ ! -f $(DIARYDIR)/d19990517.hnf ]; then \
168 cp -p diary/d19990517.hnf $(DIARYDIR); \
169 fi
170 if [ ! -f $(DIARYDIR)/y199906 ]; then \
171 cp -p diary/y199906 $(DIARYDIR); \
172 fi
173 if [ ! -f $(DIARYDIR)/todo ]; then \
174 cp -p diary/todo $(DIARYDIR); \
175 fi
176
177 install_phpfi: install_file
178 if [ -f $(HTMLDIR)/config.phtml ]; then \
179 mv -f $(HTMLDIR)/config.phtml $(HTMLDIR)/config.phtml-old; \
180 fi
181 cp -p public_html/diary_phpfi/*.html $(HTMLDIR)
182 cp -pf public_html/diary_phpfi/*.phtml $(HTMLDIR)
183 chmod 444 $(HTMLDIR)/*.phtml
184 chmod 644 $(HTMLDIR)/config.phtml
185
186 install_php3: install_file
187 if [ -f $(HTMLDIR)/config.php3 ]; then \
188 mv -f $(HTMLDIR)/config.php3 $(HTMLDIR)/config.php3-old; \
189 fi
190 cp -p public_html/diary_php3/*.html $(HTMLDIR)
191 cp -pf public_html/diary_php3/*.php3 $(HTMLDIR)
192 chmod 444 $(HTMLDIR)/*.php3
193 chmod 644 $(HTMLDIR)/config.php3
194
195 clean:
196 rm -f public_html/diary_phpfi/config.phtml
197 rm -f public_html/diary_php3/config.php3
198 rm -f public_html/diary_phpfi/web2nikki.phtml
199 rm -f public_html/diary_php3/web2nikki.php3
200 rm -f tools/mail2nikki/mail2nikki.pl
201 rm -f tools/log.cgi/log.cgi
202 rm -f tools/title.cgi/title.cgi
203

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26