Skip to content

Commit

Permalink
improved auracle info caching, improve option parsing by removing the…
Browse files Browse the repository at this point in the history
… if statement at the start of the loop, enable nounset, lots and lots of hopefully NFC
  • Loading branch information
E5ten committed Sep 19, 2019
1 parent b3c9fb8 commit 299f8e5
Show file tree
Hide file tree
Showing 4 changed files with 801 additions and 976 deletions.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -11,6 +11,7 @@ DATAROOTDIR = $(PREFIX)/share
DOCDIR = $(DATAROOTDIR)/doc/pacaur
MANPREFIX = $(DATAROOTDIR)/man
MSGFMT = $(shell command -v msgfmt 2>/dev/null)
POD2MAN = $(shell command -v pod2man 2>/dev/null)

TRANSLATIONS = \
ca \
Expand Down Expand Up @@ -39,16 +40,20 @@ all: doc

# documentation
doc:
ifneq ($(POD2MAN),)
@echo "Generating documentation..."
@pod2man --utf8 --section=8 --center="Pacaur Manual" --name="PACAUR" \
--release="pacaur $(VERSION)" ./README.pod ./pacaur.8
endif

# aux
install: doc
@echo "Installing..."
@install -Dm644 ./config $(DESTDIR)$(DOCDIR)/config.example
@install -Dm755 ./pacaur -t $(DESTDIR)$(BINDIR)
@sed -i "s%declare -r version=.*%declare -r version=\'$(VERSION)\'%" $(DESTDIR)$(BINDIR)/pacaur
@sed -e "s%(declare -r version=).*%\1\'$(VERSION)\'%" \
-e "s%/usr/share/makepkg%$(shell pkg-config --variable=libmakepkgdir libmakepkg)%" \
-Ei $(DESTDIR)$(BINDIR)/pacaur
@install -Dm644 ./completions/bash.completion $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/pacaur
@install -Dm644 ./completions/zsh.completion $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/_pacaur
@install -Dm644 ./LICENSE -t $(DESTDIR)$(DATAROOTDIR)/licenses/pacaur
Expand Down

0 comments on commit 299f8e5

Please sign in to comment.