Compare commits

..

10 commits

Author SHA1 Message Date
Bram Stolk
8d4398f07d Add manpage to the debian package. 2022-09-07 18:20:03 -07:00
Bram Stolk
4aa62787a6 Remove unnecessary rm command. 2022-09-07 15:05:28 -07:00
Bram Stolk
afc7dc17eb Remove cruft. 2022-09-07 14:53:33 -07:00
Bram Stolk
8dde00d8e5 Support debian package creation. 2022-09-07 14:49:14 -07:00
Bram Stolk
7619be0708 Use CC macro. 2022-05-31 12:21:34 -07:00
stolk
218d97541c popen() requires _POSIX_SOURCE to be 2 or higher. 2019-11-12 09:22:08 -08:00
stolk
ee82fdbbc3 Merge branch 'master' of github.com:stolk/imcat 2019-03-04 13:50:16 -08:00
stolk
3276c68071 Add man page. 2019-03-04 13:50:10 -08:00
Bram Stolk
710202f191
Merge pull request #4 from Samuel-Clarke123/master
explicitly stated the standard, to avoid errors with different compilers
2018-10-25 23:40:26 -07:00
Samuel Clarke
0cf4c6de35
explicitly stated the standard, to avoid errors with different compilers 2018-10-26 16:42:00 +11:00
8 changed files with 131 additions and 1 deletions

View file

@ -1,5 +1,5 @@
imcat: imcat.c
cc -Wall -g -o imcat imcat.c -lm
$(CC) -D_POSIX_C_SOURCE=2 -std=c99 -Wall -g -o imcat imcat.c -lm
run: imcat
./imcat ~/Desktop/*.png
@ -7,3 +7,18 @@ run: imcat
clean:
rm -f ./imcat
install: imcat
install -d ${DESTDIR}/usr/bin
install -m 755 imcat ${DESTDIR}/usr/bin/
uninstall:
sudo rm -f ${DESTDIR}/usr/bin/imcat
tarball:
tar cvzf ../imcat_1.5.orig.tar.gz Makefile README.md stb_image.h imcat.c imcat.1 debian images
packageupload:
debuild -S
debsign ../imcat_1.5-1_source.changes
dput ppa:b-stolk/ppa ../imcat_1.5-1_source.changes

11
debian/changelog vendored Normal file
View file

@ -0,0 +1,11 @@
imcat (1.5-1) kinetic; urgency=medium
* Added manpage.
-- Bram Stolk <bram.stolk@canonical.com> Wed, 07 Sep 2022 18:16:00 -0700
imcat (1.4-1) kinetic; urgency=medium
* Initial release.
-- Bram Stolk <bram.stolk@canonical.com> Wed, 07 Sep 2022 14:10:00 -0700

15
debian/control vendored Normal file
View file

@ -0,0 +1,15 @@
Source: imcat
Section: contrib/utils
Priority: optional
Maintainer: Bram Stolk <bram.stolk@canonical.com>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13)
Standards-Version: 4.6.1
Homepage: https://github.com/stolk/imcat
Package: imcat
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Shows images in a terminal.
Shows images in a terminal console that supports 24 bit colour.

11
debian/copyright vendored Normal file
View file

@ -0,0 +1,11 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: imcat
Upstream-Contact: Bram Stolk <b.stolk@gmail.com>
Source: https://github.com/stolk/imcat
Files: *
Copyright: 2021-2022 Bram Stolk <b.stolk@gmail.com>
License: CC0-1.0
License: CC0-1.0
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.

1
debian/imcat.manpages vendored Normal file
View file

@ -0,0 +1 @@
imcat.1

20
debian/rules vendored Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/make -f
# Output every command that modifies files on the build system.
export DH_VERBOSE = 1
# See FEATURE AREAS in dpkg-buildflags(1).
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# See ENVIRONMENT in dpkg-buildflags(1).
# Package maintainers to append CFLAGS.
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# Package maintainers to append LDFLAGS.
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)

56
imcat.1 Normal file
View file

@ -0,0 +1,56 @@
'\" t
.\" Title: imcat
.\" Author: Bram Stolk <b.stolk@gmail.com>
.\" Date: 2019-03-04
.\" Manual: Imcat Executable Programs
.\" Source: imcat github
.\" Language: English
.\"
.TH "IMCAT" "1" "2019\-03\-04" "imcat github" "Imcat Executable Program"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.nh
.ad l
.\" -----------------------------------------------------------------
.SH "NAME"
imcat \- image concatenator for text terminals.
.SH "SYNOPSIS"
.HP \w'\fBimcat\fR\ 'u
\fBimcat\fR [\fB\fI\-options\fR\fR] \fB\fIINFILE\fR\fR...
.SH "DESCRIPTION"
.PP
\fBimcat\fR
displays the specified images on a text terminal that supports colour.
.SH "OPTIONS"
.PP
.PP
\fB\--help\fR
.RS 4
shows command line syntax.
.RE
.PP
.SH "ENVIRONMENT"
.PP
\fBIMCATBG\fR
.PP
Background colour to use when displaying transparent images.
Set this to the background colour of the terminal.
For instance, when using a white terminal background, like so:
.PP
$ export IMCATBG="#ffffff"
.br
$ imcat kitten.png
.PP
.SH "SEE ALSO"
.PP
\fBstty\fR(1)
.PP
Please visit github\&.com/stolk/imcat for more information
.SH "AUTHOR"
.PP
\fBBram Stolk\fR <b\&.stolk@gmail\&.com\&>
.RE
.SH "COPYRIGHT"
.br
Copyright \(co 2018-2019 Bram Stolk. Licensed under CC0.
.br