このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
tools:gnu_indent:インストール:2.2.12 [2020/12/08 11:43] michiya 作成 |
tools:gnu_indent:インストール:2.2.12 [2021/01/14 07:26] (現在) michiya |
||
---|---|---|---|
行 1: | 行 1: | ||
====== GNU indent ====== | ====== GNU indent ====== | ||
- | ===== Source | + | |
+ | ===== 依存ライブラリ | ||
+ | |||
+ | * [[tools: | ||
+ | |||
+ | ===== 手順 ===== | ||
< | < | ||
$ wget https:// | $ wget https:// | ||
行 6: | 行 12: | ||
$ cd indent-2.2.12/ | $ cd indent-2.2.12/ | ||
$ ./configure --prefix=/ | $ ./configure --prefix=/ | ||
- | $ make | + | $ PATH=/ |
+ | | ||
$ make install | $ make install | ||
</ | </ | ||
+ | |||
+ | ===== 環境変数 ===== | ||
+ | |||
+ | < | ||
+ | $ export PATH=/ | ||
+ | $ export LD_LIBRARY_PATH=/ | ||
+ | </ | ||
+ | |||
+ | ===== スクリプト ===== | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | ############################################################# | ||
+ | inst_ver=2.2.12 | ||
+ | inst_target=/ | ||
+ | arch_file=" | ||
+ | target_web=" | ||
+ | working_dir=$(cd $(dirname $0); pwd)/ | ||
+ | texinfo_path=/ | ||
+ | ############################################################# | ||
+ | |||
+ | if [ -d ${inst_target} ]; | ||
+ | then | ||
+ | echo " | ||
+ | exit 0 | ||
+ | fi | ||
+ | |||
+ | if [ ! -d ${texinfo_path} ]; | ||
+ | then | ||
+ | echo " | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | mkdir -p ${inst_target} | ||
+ | if [ $? -ne 0 ]; | ||
+ | then | ||
+ | echo "You do not have write permission on " | ||
+ | echo "Scipt is aborted." | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | rm -rf ${arch_file} ${working_dir} | ||
+ | |||
+ | wget ${target_web} | ||
+ | if [ $? -ne 0 ]; | ||
+ | then | ||
+ | echo " | ||
+ | echo "wget ${target_web}" | ||
+ | exit 1 | ||
+ | fi | ||
+ | mkdir ${working_dir} | ||
+ | tar xvf ${arch_file} -C ${working_dir} --strip-components 1 | ||
+ | cd ${working_dir} | ||
+ | ./configure --prefix=${inst_target} | ||
+ | PATH=${texinfo_path}: | ||
+ | make install | ||
+ | </ | ||
+ |