0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンド操作で Google 翻訳できる translate-shell の任意の場所へのインストール

Last updated at Posted at 2018-10-25

Makefile をただ書き換えただけ.

環境

  • Ubuntu 16.04

スクリプト

PREFIX で好きな場所を指定.

#!/bin/bash -e

TARGET=translate-shell
REPO=https://github.com/soimort/${TARGET}.git
PREFIX="${HOME}/opt/${TARGET}"

! [ -d ${PREFIX} ] && git clone ${REPO} ${PREFIX}

cd ${PREFIX}

sed -i "s/\(^PREFIX \+= *\).*/\1$(echo ${PREFIX} | sed "s/\//\\\\\//g")/" Makefile

make
make install
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?