2
0
Fork 0
mirror of https://github.com/garabik/grc.git synced 2024-11-15 14:48:26 +01:00

update install.sh

* install man's
* install grc.bashrc to profile dir
* use $PREFIX to determine install prefix
This commit is contained in:
delphinus 2015-05-18 10:49:36 +09:00
parent 900d62a5c1
commit 0b9c238684

View file

@ -2,15 +2,22 @@
set -e set -e
DESTDIR=$1 PREFIX=$1
BINDIR=$DESTDIR/usr/bin if [ -z $PREFIX ]; then
LIBDIR=$DESTDIR/usr/share/grc PREFIX=/usr/local
MANDIR=$DESTDIR/usr/share/man/man1 fi
CONFDIR=$DESTDIR/etc
BINDIR=$PREFIX/bin
LIBDIR=$PREFIX/share/grc
MANDIR=$PREFIX/share/man
CONFDIR=/etc
PROFILEDIR=$CONFDIR/profile.d
mkdir -p $BINDIR || true mkdir -p $BINDIR || true
cp -fv grc grcat $BINDIR cp -fv grc grcat $BINDIR
mkdir -p $LIBDIR || true mkdir -p $LIBDIR || true
cp -fv conf.* $LIBDIR cp -fv conf.* $LIBDIR
mkdir -p $CONFDIR || true cp -fv $MANDIR/man1/grc.1 $MANDIR
cp -fv $MANDIR/man1/grcat.1 $MANDIR
cp -fv grc.conf $CONFDIR cp -fv grc.conf $CONFDIR
cp -fv grc.bashrc $PROFILEDIR