auto change version number, because i cannot do it myself apparently

This commit is contained in:
speedie 2023-03-28 19:53:10 +02:00
parent 78138025d2
commit f08e91e3e2
2 changed files with 5 additions and 1 deletions

View file

@ -51,7 +51,9 @@ install: all
rm -rf $(DESTDIR)$(PREFIX)/share/spmenu/ rm -rf $(DESTDIR)$(PREFIX)/share/spmenu/
mkdir -p $(DESTDIR)$(PREFIX)/bin mkdir -p $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(PREFIX)/share/spmenu mkdir -p $(DESTDIR)$(PREFIX)/share/spmenu
cp docs/example.Xresources example.Xresources.orig && sed -i "s/VERSION/$(VERSION)/g" docs/example.Xresources
cp -r docs/* $(DESTDIR)$(PREFIX)/share/spmenu/ cp -r docs/* $(DESTDIR)$(PREFIX)/share/spmenu/
mv example.Xresources.orig docs/example.Xresources
echo "${VERSION}" > $(DESTDIR)$(PREFIX)/share/spmenu/version echo "${VERSION}" > $(DESTDIR)$(PREFIX)/share/spmenu/version
echo "${CC}" > $(DESTDIR)$(PREFIX)/share/spmenu/cc echo "${CC}" > $(DESTDIR)$(PREFIX)/share/spmenu/cc
echo "${CFLAGS}" > $(DESTDIR)$(PREFIX)/share/spmenu/cflags echo "${CFLAGS}" > $(DESTDIR)$(PREFIX)/share/spmenu/cflags
@ -74,6 +76,8 @@ uninstall:
$(DESTDIR)$(PREFIX)/bin/spmenu* $(DESTDIR)$(PREFIX)/bin/spmenu*
help: help:
@echo spmenu Makefile help
@echo
@echo install: Installs spmenu. You may need to run this as root. @echo install: Installs spmenu. You may need to run this as root.
@echo uninstall: Uninstalls spmenu. You may need to run this as root. @echo uninstall: Uninstalls spmenu. You may need to run this as root.
@echo dist: Creates a release for spmenu. @echo dist: Creates a release for spmenu.

View file

@ -1,4 +1,4 @@
! spmenu 0.2.2 default configuration ! spmenu VERSION default configuration
! !
! You may copy this configuration file to ~/.config/spmenu/spmenurc OR ~/.spmenurc, it will be loaded on runtime. ! You may copy this configuration file to ~/.config/spmenu/spmenurc OR ~/.spmenurc, it will be loaded on runtime.
! It is .Xresources syntax. As such you may also append it to your existing .Xresources configuration, use programs like Pywal to have universal colorschemes. ! It is .Xresources syntax. As such you may also append it to your existing .Xresources configuration, use programs like Pywal to have universal colorschemes.