diff --git a/Makefile b/Makefile index 2b41f34f..9556396b 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,35 @@ PREFIX = /usr MANDIR = $(PREFIX)/share/man -all: - @echo Run \'make install\' to install Neofetch. +all: build + +build: + python setup.py build install: + python setup.py install --prefix=${PREFIX} + +install-doc: + @mkdir -p $(DESTDIR)$(MANDIR)/man1 + @cp -p docs/hyfetch.1 $(DESTDIR)$(MANDIR)/man1 + @cp -p docs/neofetch.1 $(DESTDIR)$(MANDIR)/man1/neowofetch.1 + +uninstall: + @rm -rf $(DESTDIR)$(PREFIX)/bin/hyfetch + @rm -rf $(DESTDIR)$(PREFIX)/bin/neowofetch + @rm -rf $(DESTDIR)$(MANDIR)/man1/hyfetch.1* + @rm -rf $(DESTDIR)$(MANDIR)/man1/neowofetch.1* + +clean: + rm -rf build/ HyFetch.egg-info + +install-neofetch: @mkdir -p $(DESTDIR)$(PREFIX)/bin @mkdir -p $(DESTDIR)$(MANDIR)/man1 @cp -p neofetch $(DESTDIR)$(PREFIX)/bin/neofetch - @cp -p neofetch.1 $(DESTDIR)$(MANDIR)/man1 + @cp -p docs/neofetch.1 $(DESTDIR)$(MANDIR)/man1 @chmod 755 $(DESTDIR)$(PREFIX)/bin/neofetch -uninstall: +uninstall-neofetch: @rm -rf $(DESTDIR)$(PREFIX)/bin/neofetch @rm -rf $(DESTDIR)$(MANDIR)/man1/neofetch.1* diff --git a/docs/hyfetch.1 b/docs/hyfetch.1 new file mode 100644 index 00000000..cd73c3b4 --- /dev/null +++ b/docs/hyfetch.1 @@ -0,0 +1,73 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH VERSION "1" "August 2023" "Version is 1.4.10" "User Commands" +.SH NAME +Version \- manual page for Version is 1.4.10 +.SH DESCRIPTION +usage: hyfetch [\-h] [\-c] [\-C CONFIG_FILE] +.IP +[\-p {rainbow,transgender,nonbinary,agender,queer,genderfluid,bisexual,pansexual,polysexual,omnisexual,omniromantic,gay\-men,lesbian,abrosexual,asexual,aromantic,aroace1,aroace2,aroace3,autosexual,intergender,greygender,akiosexual,bigender,demigender,demiboy,demigirl,transmasculine,transfeminine,genderfaun,demifaun,genderfae,demifae,neutrois,biromantic1,biromantic2,autoromantic,boyflux2,finsexual,unlabeled1,unlabeled2,pangender,gendernonconforming1,gendernonconforming2,femboy,tomboy,gynesexual,androsexual,gendervoid,voidgirl,voidboy,nonhuman\-unity,beiyang,burger}] +[\-m {8bit,rgb}] +[\-b {qwqfetch,neofetch,fastfetch,fastfetch\-old}] [\-\-args ARGS] +[\-\-c\-scale SCALE] [\-\-c\-set\-l LIGHT] [\-\-c\-overlay] [\-V] [\-\-june] +[\-\-debug] [\-\-distro DISTRO] [\-\-ascii\-file ASCII_FILE] +.PP +hyfetch \- neofetch with flags <3 +.SS "options:" +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-c\fR, \fB\-\-config\fR +Configure hyfetch +.TP +\fB\-C\fR CONFIG_FILE, \fB\-\-config\-file\fR CONFIG_FILE +Use another config file +.TP +\fB\-p\fR {rainbow,transgender,nonbinary,agender,queer,genderfluid,bisexual,pansexual,polysexual,omnisexual,omniromantic,gay\-men,lesbian,abrosexual,asexual,aromantic,aroace1,aroace2,aroace3,autosexual,intergender,greygender,akiosexual,bigender,demigender,demiboy,demigirl,transmasculine,transfeminine,genderfaun,demifaun,genderfae,demifae,neutrois,biromantic1,biromantic2,autoromantic,boyflux2,finsexual,unlabeled1,unlabeled2,pangender,gendernonconforming1,gendernonconforming2,femboy,tomboy,gynesexual,androsexual,gendervoid,voidgirl,voidboy,nonhuman\-unity,beiyang,burger}, \fB\-\-preset\fR {rainbow,transgender,nonbinary,agender,queer,genderfluid,bisexual,pansexual,polysexual,omnisexual,omniromantic,gay\-men,lesbian,abrosexual,asexual,aromantic,aroace1,aroace2,aroace3,autosexual,intergender,greygender,akiosexual,bigender,demigender,demiboy,demigirl,transmasculine,transfeminine,genderfaun,demifaun,genderfae,demifae,neutrois,biromantic1,biromantic2,autoromantic,boyflux2,finsexual,unlabeled1,unlabeled2,pangender,gendernonconforming1,gendernonconforming2,femboy,tomboy,gynesexual,androsexual,gendervoid,voidgirl,voidboy,nonhuman\-unity,beiyang,burger} +Use preset +.TP +\fB\-m\fR {8bit,rgb}, \fB\-\-mode\fR {8bit,rgb} +Color mode +.TP +\fB\-b\fR {qwqfetch,neofetch,fastfetch,fastfetch\-old}, \fB\-\-backend\fR {qwqfetch,neofetch,fastfetch,fastfetch\-old} +Choose a *fetch backend +.TP +\fB\-\-args\fR ARGS +Additional arguments pass\-through to backend +.TP +\fB\-\-c\-scale\fR SCALE +Lighten colors by a multiplier +.TP +\fB\-\-c\-set\-l\fR LIGHT +Set lightness value of the colors +.TP +\fB\-\-c\-overlay\fR +Use experimental overlay color adjusting instead of +HSL lightness +.TP +\fB\-V\fR, \fB\-\-version\fR +Check version +.TP +\fB\-\-june\fR +Show pride month easter egg +.TP +\fB\-\-debug\fR +Debug mode +.TP +\fB\-\-distro\fR DISTRO, \fB\-\-test\-distro\fR DISTRO +Test for a specific distro +.TP +\fB\-\-ascii\-file\fR ASCII_FILE +Use a specific file for the ascii art +.SH "SEE ALSO" +The full documentation for +.B Version +is maintained as a Texinfo manual. If the +.B info +and +.B Version +programs are properly installed at your site, the command +.IP +.B info Version +.PP +should give you access to the complete manual. diff --git a/neofetch.1 b/docs/neofetch.1 similarity index 100% rename from neofetch.1 rename to docs/neofetch.1