Skip to content

Commit

Permalink
Squash later
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Herdiansyah committed Jul 10, 2017
1 parent c340fc3 commit ca79558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
PREFIX = /usr

all:
@echo Run 'make install' to install Neofetch.

Expand Down
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ mkdir -p "${DESTDIR}""${PREFIX}""${MANDIR}"
sed -i -e "s|ASCIIDIR|${PREFIX}${ASCIIDIR}|g" neofetch

cp -p neofetch "${DESTDIR}""${PREFIX}""${BINDIR}"
cp -p config/config.conf "${DESTDIR}""${PREFIX}""${CONFDIR}"
cp -p ascii/distro/* "${DESTDIR}""${PREFIX}""${ASCIIDIR}"
cp -p neofetch.1 "${DESTDIR}""${PREFIX}""${MANDIR}"

if [ -z "$PREFIX" ] || [ "$PREFIX" = "/usr" ]; then
if [ "$PREFIX" = "/usr" ]; then
mkdir -p "${DESTDIR}""${CONFDIR}"
sed -i -e "s|CONFDIR|${CONFDIR}|g" neofetch
cp -p config/config.conf "${DESTDIR}""${CONFDIR}"
Expand Down

0 comments on commit ca79558

Please sign in to comment.