Skip to content

Commit

Permalink
Fix sharedir target for install script
Browse files Browse the repository at this point in the history
  • Loading branch information
bcornec committed Oct 4, 2018
1 parent 5277368 commit 95ce6f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Use: **`./install.sh`** as root user

You can pass 2 additional variables to change the target directories. Without them, installation will be under /usr/local

Use PREFIX=/opt to install under that directory
Use **`export PREFIX=/opt`** to install under that directory
Packagers may find the DESTDIR variable useful to install in addition under a build subtree.

Example for an install under ${RPM_BUILD_ROOT}/usr: ./install.sh DESTDIR=${RPM_BUILD_ROOT} PREFIX=/usr
Example for an install under ${RPM_BUILD_ROOT}/usr: **`DESTDIR=${RPM_BUILD_ROOT} PREFIX=/usr ./install.sh`**

## Usage

Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ DATADIR=$target/share/$NAME
BINDIR=$target/bin

echo "Creating target directories ..."
install -m 755 -d $MANDIR $BINDIR $DATADIR/$NAME/examples
install -m 755 -d $MANDIR $BINDIR $DATADIR/examples

echo "Copying files ..."
install -m 0755 $NAME $BINDIR
pod2man -c "tellico2html" --section=1 $BINDIR/$NAME > $MANDIR/$NAME.1
chmod 644 $MANDIR/$NAME.1
cp -a examples/* examples/.??* $DATADIR/$NAME/examples
cp -a examples/* examples/.??* $DATADIR/examples
exit 0

0 comments on commit 95ce6f5

Please sign in to comment.