Develop and Download Open Source Software

Browse CVS Repository

Contents of /h14m/hns-perl/hns-lite.sh

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


Revision 1.13 - (show annotations) (download) (as text)
Fri Jan 3 10:26:52 2003 UTC (21 years, 3 months ago) by bonaim
Branch: MAIN
CVS Tags: hns-2-19-6, hns-2-19-7, hns-2-19-8, hns-2-19-9, hns-2-19-7-1, HEAD
Changes since 1.12: +4 -7 lines
File MIME type: text/x-sh
remove the routine to change CacheDir for config.ph's change

1 #!/bin/sh
2 # HyperNikkiSystem, hns-lite Creating Script for hns-2.10
3 # 2000/10/21 since 2000/05/04
4 # ChangeLog
5 # 2001-02-02 Yoichi Imai <yoichi@silver-forest.com>
6 # * added changelog
7 # * 0.7 release
8 #
9 # Copyright (C) 2000 Yoichi Imai <yoichi@silver-forest.com>
10 # $Id: hns-lite.sh,v 1.12 2002/04/04 15:11:37 bonaim Exp $
11
12 set -e
13
14 LITE_VER=`sed -ne 's/^\$VERSION = "\(.*\)";$/\1/p' public_html/diary/lib/HNS.pm`
15 PATH=$PATH:/usr/sbin
16 PERL=/usr/local/bin/perl
17 SENDMAIL=/usr/sbin/sendmail
18 NKF=/usr/bin/nkf
19 LITE_DIR="/tmp/hns-lite-root/hns-lite-$LITE_VER"
20 #LITE_DIR_Q="\\/tmp\\/hns-lite-root\\/hns-lite-$LITE_VER"
21
22 mkdir /tmp/hns-lite-setup-$$
23 cp -pr . /tmp/hns-lite-setup-$$
24 cd /tmp/hns-lite-setup-$$
25
26 rm -rf /tmp/hns-lite-root
27 mkdir -p $LITE_DIR/hns-lite
28 mkdir -p $LITE_DIR/diary
29
30 make NIKKITITLE="Hoge's Nikki" \
31 DIARYDIR="$LITE_DIR/diary" \
32 HTMLDIR="$LITE_DIR/hns-lite" \
33 PERL_PATH="$PERL" \
34 SENDMAIL_PATH="$SENDMAIL" \
35 NKF_PATH="$NKF" \
36 MYDIARYURI="http://www.example.ne.jp/~hoge/hns-lite/" \
37 install
38
39 cp -pr docs $LITE_DIR/docs.orig
40 cp GPL.txt $LITE_DIR/
41 cp GPL-j.txt $LITE_DIR/
42 cp README.ja $LITE_DIR/
43 # tar xvf hns-lite-doc.tar -C $LITE_DIR
44 cat > $LITE_DIR/INSTALL.txt <<EOF
45 ����������������,
46 EUC��������������������������������
47 FTP������������������
48
49 EUC����������������������������
50 ������++(http://www.vector.co.jp/soft/win95/writing/se120980.html)��������,
51 FTP����������,
52 FFFTP(http://www.vector.co.jp/soft/win95/net/se061839.html)��������������
53 ������������++, FFFTP����������������������������
54
55 * ����������������
56
57 1. ������������������
58 1.1 ������������
59 $�������� = "<<<������������>>>";
60 <<<������������>>>����������������������������������
61
62 $Title : ��������������
63 ��������������,
64 $Title = "Hoge's Diary";
65 ��������������
66 $Title = "������������������������������";
67 ����������������������������������
68 ������������������������������������������
69
70 1.2 ������������������
71 hns-lite/config.ph
72 $Title : ��������������
73 $UserMail : ��������������
74 $Author : ������������
75 $MyDiaryURI : ������������������������������������hns-lite����������URI
76 ��������, http://www.example.ne.jp/~username/cgi-bin/hns-lite/������
77 ������������������������diary����������������hns-lite��������������
78 diary/ ��������, hns-lite/������������������������������
79 hns-lite/i/config.ph
80 $baseuri : $MyDiaryURI����������������
81 $title : ������������(i-mode��)
82 $head : ������������(i-mode��)
83 $address : ��������������
84
85 2. hns-lite������������������������cgi����������,
86 hns-lite������������������i����������index.cgi��1����������
87 perl����������������������������������
88 #!/usr/local/bin/perl
89 ����������������������������������������������
90
91 3.
92 hns-lite��������
93 diary��������
94 ��ftp��������������������������
95 ����������������.htaccess��������������������������������������������������
96 ����, ����2����������������������������������������
97
98 4. ����������������������������
99 hns-lite/ *.cgi�������� : 755
100 hns-lite/i/index.cgi : 755
101 diary/ cache�������� : 777
102 log��������,��������LM,OLD,lock�������� : 777
103 log�������������������� : 666
104 data/boarddata.txt : 666 (board.cgi��������������)
105
106 5. ��������������
107 ����������������
108 http://������������������������/hns-lite/
109 ������������������
110
111 ��������������������������������������������
112 ������, docs.orig������������������������������,
113 http://www.h14m.org/��������������������������������
114 EOF
115 nkf -s $LITE_DIR/INSTALL.txt > $LITE_DIR/INSTALL.txt.out
116 mv $LITE_DIR/INSTALL.txt.out $LITE_DIR/INSTALL.txt
117
118 cat > $LITE_DIR/README-lite.txt <<EOF
119 HyperNikkiSystem Lite
120
121 HyperNikkiSystem Lite����
122 Unix��������������������������
123 Unix����������������������������������������������������
124 Hyper NIKKI System����������������������������
125
126 ����(����������)��������������������������������������������������������
127 ����������������������������, Hyper NIKKI System��������������,
128 Hyper NIKKI System��������������������������
129
130 HyperNikkiSystem Project
131 http://www.h14m.org/hns-lite/
132 EOF
133 nkf -s $LITE_DIR/README-lite.txt > $LITE_DIR/README-lite.txt.out
134 mv $LITE_DIR/README-lite.txt.out $LITE_DIR/README-lite.txt
135
136 rm -rf /tmp/hns-lite-setup-$$
137 rm -rf $LITE_DIR/hns-lite/anti-windoze
138 rm -rf $LITE_DIR/hns-lite/ruribaka
139
140 cd $LITE_DIR/hns-lite
141 sed -e \
142 "s|$LITE_DIR/|../|g" \
143 config.ph > config.ph.out
144 sed -e \
145 's|\.\./hns-lite|./|g' \
146 config.ph.out > config.ph
147 rm config.ph.out
148
149 cd i/
150 sed -e \
151 "s|$LITE_DIR/|../../|g" \
152 config.ph > config.ph.out
153 sed -e \
154 's|\.\./\.\./hns-lite/i|./|g' \
155 config.ph.out > config.ph
156
157 rm config.ph.out
158 cp ../lib/jcode.pl .
159 cd ..
160
161 cd lib/HNS/
162 sed -e \
163 's|\(print \"RURI[^\$]*\)\$HNS::System::|\1|g' \
164 Admini.pm > Admini.pm.out
165 mv Admini.pm.out Admini.pm
166
167 cd $LITE_DIR/diary
168 cat > .htaccess <<EOF
169 <Limit GET POST PUT>
170 deny from all
171 </Limit>
172 EOF
173
174 cd $LITE_DIR/hns-lite/lib
175
176 sed -e 's/<div align="right">Powered by <a href="%s">hns-%s/&-lite/' \
177 HNS.pm > HNS.pm.out
178 mv HNS.pm.out HNS.pm
179
180 cd /tmp/hns-lite-root
181 tar zcf hns-lite-$LITE_VER.tar.gz hns-lite-$LITE_VER
182 lha c hns-lite-$LITE_VER.lzh hns-lite-$LITE_VER
183

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