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:
parent
900d62a5c1
commit
0b9c238684
1 changed files with 13 additions and 6 deletions
19
install.sh
19
install.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue