[Reference:<_A40@freyasx.ML_>]
Newsgroups: mail-lists.freyasx
[FreyaSX] お手軽インストーラのリリース
インストール手順をHTMLに書き直しているうちに、なんだか面倒くさそうに
見えて来たので、ちょっとしたインストーラをシェルスクリプトで書きました。
これで、
cd $HOME
gzip -d < freyasx.tar.gz | tar xf -
cd freyasx
make
でインストール完了です。ということで、説明も簡単に。
<URL:http://www.delegate.org/freyasx/INSTALL-ja.html>
D G
┌─┐┬┌──┬┐ //\^^ ( - ); {Do the more with the less -- B. Fuller}
├─┤│└─┐│ / 877m\_< >_ <URL:http://www.delegate.org/delegate/>
┴ └┴──┘┴──────────────────────────────
佐藤豊@情報技術研究部門.産業技術総合研究所(独立行政法人)
#!/bin/sh
ADMIN=your_PFCMX5K.ml@delegate.org
DGVER=8.9.6-pre18
SXVER=0.99.8
echo " ////////////////////////////////////////////////////////////////////"
echo " FreyaSX installer "
echo " FreyaSX ver. $SXVER "
echo " DeleGate ver. $DGVER"
echo " September 7, 2004, Yutaka Sato"
echo " ////////////////////////////////////////////////////////////////////"
echo ""
LOG=INSTALL.log
echo 'Detailed log is put into "'$LOG'"'
echo ""
######################################
echo "*** extracting FreyaSX-$SXVER ..."
gzip -d < freyasx-$SXVER.tar.gz | tar xf -
export FSXHOME=`pwd`/freyasx-$SXVER
(
cd freyasx-$SXVER
echo "*** making FreyaSX-$SXVER ..."
make >> ../make-fsx.log 2>&1
testsx >> ../make-fsx.log 2>&1
)
######################################
echo "*** extracting DeleGate/$DGVER ..."
gzip -d < delegate$DGVER.tar.gz | tar xf -
(
cd delegate$DGVER
echo "*** making DeleGate/$DGVER ..."
make ADMIN=$ADMIN >> ../make-fsx.log 2>&1
echo "*** making any2fdif ..."
make any2fdif >> ../make-fsx.log 2>&1
src/delegated LIBDIR=$FSXHOME/etc CHARSET=UTF-8 -Fccx < /dev/null
)
######################################
echo ""
echo "Installing to here: `pwd`"
cp -rp freyasx-$SXVER/bin .
cp -rp freyasx-$SXVER/etc .
cp -rp freyasx-$SXVER/cgi-bin .
cp -rp freyasx-$SXVER/bank .
cp -p delegate$DGVER/fsx/any2fdif ./bin
cp -p delegate$DGVER/src/delegated ./bin
echo " "`pwd`/bin
echo " "`pwd`/etc
echo " "`pwd`/cgi-bin
echo " "`pwd`/bank
echo ""
echo "You can remove following unnecessary files:"
echo " "rm -r `pwd`/delegate$DGVER
echo " "rm -r `pwd`/freyasx-$SXVER
echo " "rm -r `pwd`/make-fsx.log
echo ''
echo 'Now, complete the installation and setup your environmnet as follows:'
echo '---------------------------------------------------------------------'
if [ "$SHELL" == "/bin/csh" ]; then
PROMPT='%'
echo ' setenv FSXHOME '`pwd`
echo ' set path=($FSXHOME/bin $path)'
else
PROMPT='$'
echo ' export FSXHOME='`pwd`
echo ' export PATH="$FSXHOME/bin:$PATH"'
fi
echo ''
echo 'Then, you can test it as follows:'
echo '---------------------------------------------------------------------'
echo ' findex -b sx'
echo ' fsearch -b sx "freya*"'
echo ''
echo 'See http://www.delegate.org/freyasx/ for more detailes'
echo " ////////////////////////////////////////////////////////////////////"
|