remove invalid advice

This commit is contained in:
speedie 2023-03-31 18:05:12 +02:00
parent 1d39136f8a
commit 425dd24812
3 changed files with 24 additions and 13 deletions

View file

@ -79,15 +79,16 @@ uninstall:
help: help:
@echo spmenu Makefile help @echo spmenu Makefile help
@echo @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 install_arch: Uses the PKGBUILD to install spmenu using pacman.
@echo clean: Removes objects and tarballs. @echo dist: Creates a release for spmenu.
@echo man: Generate man page for spmenu @echo clean: Removes objects and tarballs.
@echo compat: Installs compatibility with dmenu. WARNING: This will overwrite dmenu and dmenu_run @echo man: Generate man page for spmenu
@echo commit: Commit to the repository @echo compat: Installs compatibility with dmenu. WARNING: This will overwrite dmenu and dmenu_run
@echo pkg_arch: Creates an Arch package based on the PKGBUILD @echo commit: Commit to the repository
@echo help: Displays this help sheet. @echo pkg_arch: Creates an Arch package based on the PKGBUILD
@echo help: Displays this help sheet.
man: man:
printf "%% spmenu(1) $(VERSION) | dynamic menu\n" > .man.md printf "%% spmenu(1) $(VERSION) | dynamic menu\n" > .man.md
@ -104,9 +105,18 @@ pkg_arch: dist
rm -rf src/ pkg/ *.tar.gz rm -rf src/ pkg/ *.tar.gz
cp PKGBUILD spmenu-$(VERSION).PKGBUILD; mv PKGBUILD.orig PKGBUILD cp PKGBUILD spmenu-$(VERSION).PKGBUILD; mv PKGBUILD.orig PKGBUILD
install_arch: dist
command -v makepkg > /dev/null || exit 1
[ -f PKGBUILD ] || exit 1
cp -f PKGBUILD PKGBUILD.orig
sed -i "s/VERSION/$(VERSION)/g; s/MD5SUM/$$(md5sum *.tar.gz | cut -d ' ' -f 1)/g" PKGBUILD
makepkg -si || exit 1
rm -rf src/ pkg/ *.tar.gz
cp PKGBUILD spmenu-$(VERSION).PKGBUILD; mv PKGBUILD.orig PKGBUILD
commit: man commit: man
command -v git > /dev/null || exit 1 command -v git > /dev/null || exit 1
git commit -a git commit -a
git push origin master git push origin master
.PHONY: all options clean dist install uninstall pkg_arch help man commit .PHONY: all options clean dist install install_arch uninstall pkg_arch help man commit

View file

@ -130,8 +130,9 @@ packages.</p>
<p>If you are on Arch GNU/Linux, you can add <a <p>If you are on Arch GNU/Linux, you can add <a
href="https://git.speedie.gq/speedie-repository">my repository</a> which href="https://git.speedie.gq/speedie-repository">my repository</a> which
includes <code>spmenu</code> as well as other useful packages.</p> includes <code>spmenu</code> as well as other useful packages.</p>
<p>Theres also a PKGBUILD. To use it, simply <code>makepkg -Si</code> <p>Theres also a PKGBUILD. To use it, simply
in the directory the PKGBUILD is located.</p> <code>make install_arch</code> in the directory the PKGBUILD is
located.</p>
<p>If you wish to package spmenu for your GNU/Linux distribution, feel <p>If you wish to package spmenu for your GNU/Linux distribution, feel
free to add it to this list.</p> free to add it to this list.</p>
<h2 id="todo">TODO</h2> <h2 id="todo">TODO</h2>

View file

@ -107,7 +107,7 @@ If you are on Arch GNU/Linux, you can add
[my repository](https://git.speedie.gq/speedie-repository) which includes [my repository](https://git.speedie.gq/speedie-repository) which includes
`spmenu` as well as other useful packages. `spmenu` as well as other useful packages.
There's also a PKGBUILD. To use it, simply `makepkg -Si` in the directory There's also a PKGBUILD. To use it, simply `make install_arch` in the directory
the PKGBUILD is located. the PKGBUILD is located.
If you wish to package spmenu for your GNU/Linux distribution, feel free to add If you wish to package spmenu for your GNU/Linux distribution, feel free to add