2
0
mirror of https://github.com/garabik/grc.git synced 2024-09-30 17:51:30 +02:00
bash-color-grc/install.sh

24 lines
412 B
Bash
Raw Normal View History

2015-01-25 18:36:02 +01:00
#!/bin/sh
2015-02-27 15:20:32 +01:00
set -e
PREFIX=$1
if [ -z $PREFIX ]; then
PREFIX=/usr/local
fi
BINDIR=$PREFIX/bin
LIBDIR=$PREFIX/share/grc
MANDIR=$PREFIX/share/man
CONFDIR=/etc
PROFILEDIR=$CONFDIR/profile.d
2015-01-25 18:36:02 +01:00
mkdir -p $BINDIR || true
cp -fv grc grcat $BINDIR
mkdir -p $LIBDIR || true
cp -fv conf.* $LIBDIR
cp -fv $MANDIR/man1/grc.1 $MANDIR
cp -fv $MANDIR/man1/grcat.1 $MANDIR
2015-01-25 18:36:02 +01:00
cp -fv grc.conf $CONFDIR
cp -fv grc.bashrc $PROFILEDIR