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

30 lines
482 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
2015-11-01 19:49:39 +01:00
ETCPREFIX=$2
if [ -z $PREFIX ]; then
PREFIX=/usr/local
fi
2015-11-01 19:49:39 +01:00
BINDIR=$PREFIX/bin
LIBDIR=$PREFIX/share/grc
MANDIR=$PREFIX/share/man
2015-11-01 19:49:39 +01:00
CONFDIR=$ETCPREFIX/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
2015-05-19 15:32:05 +02:00
mkdir -p $MANDIR/man1
cp -fv grc.1 $MANDIR/man1
cp -fv grcat.1 $MANDIR/man1
2015-11-01 20:03:34 +01:00
mkdir -p $CONFDIR
2015-01-25 18:36:02 +01:00
cp -fv grc.conf $CONFDIR
2015-11-01 20:03:34 +01:00
mkdir -p $PROFILEDIR
cp -fv grc.bashrc $PROFILEDIR
2015-11-01 19:49:39 +01:00