Browse Source

guess what?!

encrypt 8 years ago
parent
commit
325489bae6
2 changed files with 56 additions and 0 deletions
  1. 24 0
      Makefile
  2. 32 0
      immaginibuongiorno.1

+ 24 - 0
Makefile

@@ -0,0 +1,24 @@
+VERSION = 0.1.0
+
+PREFIX = /usr/local
+MANPREFIX = ${PREFIX}/share/man
+
+all: install
+
+install:
+	@echo installing executables to ${DESTDIR}${PREFIX}/bin
+	@mkdir -p ${DESTDIR}${PREFIX}/bin
+	@cp -f immaginibuongiorno.sh ${DESTDIR}${PREFIX}/bin/immaginibuongiorno
+	@chmod 755 ${DESTDIR}${PREFIX}/bin/immaginibuongiorno
+	@echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
+	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
+	@sed "s/VERSION/${VERSION}/g" < immaginibuongiorno.1 > ${DESTDIR}${MANPREFIX}/man1/immaginibuongiorno.1
+	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/immaginibuongiorno.1
+
+uninstall:
+	@echo removing executables from ${DESTDIR}${PREFIX}/bin
+	@rm -f ${DESTDIR}${PREFIX}/bin/immaginibuongiorno
+	@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
+	@rm -f ${DESTDIR}${MANPREFIX}/man1/immaginibuongiorno.1
+
+.PHONY: all t install uninstall

+ 32 - 0
immaginibuongiorno.1

@@ -0,0 +1,32 @@
+.TH IMMAGINIBUONGIORNO 1 IMMAGINIBUONGIORNO\-VERSION
+.SH NAME
+immaginibuongiorno \- client for immaginibuongiorno.it
+.SH SYNOPSIS
+.B immaginibuongiorno
+.RB [ \--gattini ]
+.RB [ \--glitter ]
+.RB [ \--random ]
+.SH DESCRIPTION
+.B immaginibuongiorno
+is a command-line client for http://immaginibuongiorno.it.
+.P
+You can use it to get a daily buongiorno image like te l'avesse mandata tua zia su whatsapp.
+.SH OPTIONS
+.TP
+.B \--gattini
+Return only images with gattini :3
+.TP
+.B \--caffe
+You will get a buongiorno and a cup of coffee
+.TP
+.B \--random
+So random. WOW.
+.SH USAGE
+Launch immaginibuongiorno without flags to get the daily image, like this:
+.P
+http://immaginibuongiorno.it/wp-content/uploads/2016/03/immagini-buon-lunedi-320x247.jpg
+.P
+Or launch it with flags to get immagini più belle.
+.SH SEE ALSO
+.IR curl (1),
+.IR grep (1)