summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-10-26 00:11:54 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-10-26 02:07:32 -0400
commitdfd594ab068b4649f6e864f8348515e754c36b39 (patch)
treed1f948ec220ec97fbf4e4ec945e8f56916b7f032
parent45c342f7316199ab4f326da4b3a9c7cd4a1db774 (diff)
wip - rename *aur*->*pur*
-rw-r--r--.gitignore2
-rw-r--r--Makefile34
2 files changed, 18 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
index f7127d5..2325db1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-pacaur.8*
+pacpur.8*
diff --git a/Makefile b/Makefile
index f60d8c8..b19ed1c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
##
-# pacaur - An AUR helper that minimizes user interaction
+# pacpur - A PUR helper that minimizes user interaction
##
VERSION = $(shell git describe --always | sed 's%-%.%g')
@@ -8,7 +8,7 @@ PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
DATAROOTDIR = $(PREFIX)/share
-DOCDIR = $(DATAROOTDIR)/doc/pacaur
+DOCDIR = $(DATAROOTDIR)/doc/pacpur
MANPREFIX = $(DATAROOTDIR)/man
MSGFMT = $(shell command -v msgfmt 2>/dev/null)
POD2MAN = $(shell command -v pod2man 2>/dev/null)
@@ -47,42 +47,42 @@ all: doc
doc:
ifneq ($(POD2MAN),)
@echo "Generating documentation..."
- @pod2man -u -s 8 -c "Pacaur Manual" -n "PACAUR" -r "pacaur $(VERSION)" < ./README.pod > ./pacaur.8
+ @pod2man -u -s 8 -c "Pacpur Manual" -n "PACPUR" -r "pacpur $(VERSION)" < ./README.pod > ./pacpur.8
endif
# aux
install: doc
@echo "Installing..."
@install -Dm644 ./config $(DESTDIR)$(DOCDIR)/config.example
- @sed -E "s%(declare -r version=).*%\1\'$(VERSION)\'%;s%/usr/share/makepkg%$(LIBRARY)%" ./pacaur | \
- install -Dm755 /dev/stdin $(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
+ @sed -E "s%(declare -r version=).*%\1\'$(VERSION)\'%;s%/usr/share/makepkg%$(LIBRARY)%" ./pacpur | \
+ install -Dm755 /dev/stdin $(DESTDIR)$(BINDIR)/pacpur
+ @install -Dm644 ./completions/bash.completion $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/pacpur
+ @install -Dm644 ./completions/zsh.completion $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/_pacpur
+ @install -Dm644 ./LICENSE -t $(DESTDIR)$(DATAROOTDIR)/licenses/pacpur
ifneq ($(POD2MAN),)
- @install -Dm644 ./pacaur.8 -t $(DESTDIR)$(MANPREFIX)/man8
+ @install -Dm644 ./pacpur.8 -t $(DESTDIR)$(MANPREFIX)/man8
endif
ifneq ($(MSGFMT),)
for i in $(TRANSLATIONS); do \
mkdir -p "$(DESTDIR)$(DATAROOTDIR)/locale/$$i/LC_MESSAGES/"; \
- $(MSGFMT) ./po/$$i.po -o "$(DESTDIR)$(DATAROOTDIR)/locale/$$i/LC_MESSAGES/pacaur.mo"; \
+ $(MSGFMT) ./po/$$i.po -o "$(DESTDIR)$(DATAROOTDIR)/locale/$$i/LC_MESSAGES/pacpur.mo"; \
done
endif
uninstall:
@echo "Uninstalling..."
@$(RM) $(DESTDIR)$(DOCDIR)/config.example
- @$(RM) $(DESTDIR)$(BINDIR)/pacaur
- @$(RM) $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/pacaur
- @$(RM) $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/_pacaur
- @$(RM) $(DESTDIR)$(DATAROOTDIR)/licenses/pacaur/LICENSE
- @$(RM) $(DESTDIR)$(MANPREFIX)/man8/pacaur.8
+ @$(RM) $(DESTDIR)$(BINDIR)/pacpur
+ @$(RM) $(DESTDIR)$(DATAROOTDIR)/bash-completion/completions/pacpur
+ @$(RM) $(DESTDIR)$(DATAROOTDIR)/zsh/site-functions/_pacpur
+ @$(RM) $(DESTDIR)$(DATAROOTDIR)/licenses/pacpur/LICENSE
+ @$(RM) $(DESTDIR)$(MANPREFIX)/man8/pacpur.8
@for i in $(TRANSLATIONS); do \
- $(RM) "$(DESTDIR)$(DATAROOTDIR)/locale/$$i/LC_MESSAGES/pacaur.mo"; \
+ $(RM) "$(DESTDIR)$(DATAROOTDIR)/locale/$$i/LC_MESSAGES/pacpur.mo"; \
done
clean:
@echo "Cleaning..."
- @$(RM) ./pacaur.8
+ @$(RM) ./pacpur.8
.PHONY: doc install uninstall clean