summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* d/changelog: release to unstableHEADdebian/4-2archive/debian/4-2masterParide Legovini2018-05-07
|
* Add an autopkgtest: roundtripParide Legovini2018-05-07
|
* Override PREFIX in d/rules instead of patching config.mkParide Legovini2018-04-13
|
* Commit Debian 3.0 (quilt) metadataParide Legovini2018-04-13
| | | | [dgit (4.3) quilt-fixup]
* Revert "Fix installation paths"Paride Legovini2018-04-13
| | | | This reverts commit 39b48232f24a32481cd68b4482ed0ec24ea40220.
* farbfeld 4 is entirely ISC licensed, d/copyright updated accordinglyParide Legovini2018-04-12
|
* Change the package short description to match what upstream suggestsParide Legovini2018-04-12
|
* d/changelog: release to unstabledebian/4-1archive/debian/4-1Paride Legovini2018-04-11
|
* d/control: use secure URI in the Homepage fieldParide Legovini2018-04-11
|
* Bump Standards-Version to 4.1.4 (no changes needed)Paride Legovini2018-04-11
|
* Commit Debian 3.0 (quilt) metadataParide Legovini2018-04-11
| | | | [dgit (4.3) quilt-fixup]
* Update d/changelogParide Legovini2018-04-11
|
* Merge tag '4'Paride Legovini2018-04-11
|\
| * Bump version to 4Laslo Hunhold2018-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Foremost this release finally includes a fix for the little mistake I made in the Makefile regarding the order of arguments passed to cc which package managers had to fix with a small patch. It now also compiles on OpenBSD without problems. Apart from that, I made error reporting much more consistent by putting everything into util.c, which makes the code much more readable, and cleared up all LICENSE matters and minor details in the build system. At this point, farbfeld is very stable and unless another tool is added the codebase in general is very low on the Kelvin scale right now. Thanks for all the feedback!
| * Add warn() and die()Laslo Hunhold2018-04-11
| | | | | | | | | | | | To fully centralize this matter these well-tested functions are added to the util.c, and implemented as we know it from many other suckless projects.
| * Update manuals and LICENSELaslo Hunhold2018-04-11
| | | | | | | | This is to display that all the manuals still reflect the current state.
| * Add efread() and efwrite()Laslo Hunhold2018-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given we have a util.c anyway it does not make any sense to duplicate code here. This way, error handling and output is in one place and one does not have to change things in multiple different files. This also reduces code duplication by a lot. It also solves an older bug where the error reporting was not on point: $ echo "farb" | ff2png ff2png: fread: Success (It also lacked a newline) Now it properly reports $ echo "farb" | ff2png ff2png: fread: Unexpected end of file I also fixed some other minor details, for instance that all error messages should begin with a capital letter.
| * Update MANPREFIX according to FHSLaslo Hunhold2017-08-13
| | | | | | | | http://www.pathname.com/fhs/2.2/fhs-4.11.html
| * Rename _i,_argused to i_,argused_Laslo Hunhold2017-08-04
| | | | | | | | | | | | | | | | | | | | | | Thanks Michael Forney for reporting this! We cannot use identifiers beginning with an underscore, says the C99-standard, section 7.1.3: "All identifiers that begin with an underscore are always reserved for use as identifiers with file scope in both the ordinary and tag name spaces." We go around this by putting the underscore at the end.
| * arg.h: Small style changeLaslo Hunhold2017-08-04
| |
| * arg.h: Reformat warranty clause in line with templateLaslo Hunhold2017-08-04
| |
| * Change the license formatting a bit to be in line with the OSILaslo Hunhold2017-08-04
| | | | | | | | | | | | | | | | | | The (c)-symbol has become more of a remnant after the Berne convention has been signed. Given the ISC exploits some simplifications introduced with the Berne convention, it just makes sense to drop this relict as well and just state our Copyright without much ado about nothing. https://opensource.org/licenses/ISC
| * arg.h: Fortify ARGC()Laslo Hunhold2017-08-04
| | | | | | | | You never know...
| * arg.h: Refactor ARGF_()Laslo Hunhold2017-08-04
| |
| * arg.h: Do not modify the array elements of argv[]Laslo Hunhold2017-08-04
| | | | | | | | | | | | | | | | | | | | | | The C99 standard explicitly allows to modify argc, argv, but leaves it open what happens if you modify the content of argv. Under OpenBSD, this actually has an effect on how the program is listed (e.g. in ps). To prevent this, we just add a counter variable and use that for iteration. While at it, this commit also includes a few style changes. Thanks Hiltjo for reporting this!
| * arg.h: Rename argparsed to argusedLaslo Hunhold2017-08-04
| | | | | | | | We do not really parse anything, we just use/devour something.
| * Remove dangling newlines in LICENSELaslo Hunhold2017-08-02
| |
| * Combine all license matters in LICENSELaslo Hunhold2017-08-02
| | | | | | | | | | | | | | | | | | | | We use some OpenBSD code in util.c (namely by Ted Unangst, Todd C. Miller and Otto Moerbeek), which is licensed under the ISC license. To make it clearer and make it easier to see what farbfeld really is licensed under, we include these authors in the LICENSE file and remove the explicit headers from util.c. While at it, we also remove superfluous includes and shove them to the top.
| * FORMAT: make it a proper table with Unicode-boundary-glyphsLaslo Hunhold2017-08-02
| |
| * config.mk: small style changeLaslo Hunhold2017-08-02
| |
| * arg.h: Handle { NULL } argv[] properlyLaslo Hunhold2017-08-02
| | | | | | | | | | | | | | | | Previously, we would return argc as -1, which could cause some problems. This was not an issue introduced in the rewrite and is a bug present in the "old" arg.h as well. Thanks Isabella Parakiss for reporting this!
| * Minor style change in arg.hLaslo Hunhold2017-08-02
| | | | | | | | | | We decrement argc first before incrementing argv, so we never have a state where we potentially point to uncharted territory.
| * Rewrite arg.hLaslo Hunhold2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was something I wanted to do for quite a while now. The problem with the old arg.h is that it does not allow you to call ARGF() and EARGF() multiple times without messing the argument up. This is an unnecessary limitation and can lead to unexpected results for people not aware of this problem. ARGBEGIN { case 'a': printf("1st call: %s\n", ARGF()); printf("2nd call: %s\n", ARGF()); break; default: break; } $ prog -a ARG 1st call: ARG 2nd call: RG This is fixed now to properly print $ prog -a ARG 1st call: ARG 2nd call: ARG The old version also used more local variables than necessary, as the problem can be reduced to one single local variable within the second loop, which expresses if the argument has been consumed or not. The use of abort() within EARGF() was a bit drastic. exit(1) should suffice here and align with what you expect from an e*-type function. Additionally, the formatting I used should make readability easier and the code deduplication in the *ARGF()-macros helps with maintainability. The license used is ISC, which is compatible with MIT/X, GPL and so forth in case you want to use it in your project. I explicitly added the license header to the file making it easy to just drop it in. There are no plans to support the obsolete ARGNUM, ARGNUMF, LNGARG syntaxes.
| * Makefile - expand targets for portabilityLaslo Hunhold2017-05-30
| | | | | | | | | | | | Reading the standard thoroughly revealed that the only way to really get a portable Makefile is to list each target explicitly, so that's what we'll do now here.
| * Makefile-workaround for OpenBSDLaslo Hunhold2017-05-29
| | | | | | | | | | | | | | | | | | | | | | | | | | Thanks Hiltjo for reporting this! For some reason, OpenBSD make does not add $(BIN).o to the dependency list when it sees the $(BIN) target rule. It does so however when it does the conversion from .c to .o. This behaviour is unique for OpenBSD make as far as I've seen, and for the time being, this workaround will manually add the object to the dependency list. This is not POSIX compliant and in GNU make it just evaluates to an empty string, but it works until this has been investigated further.
| * Rename TOOL-LDFLAGS to TOOL-LDLIBS, fix order and add explicit .c.oLaslo Hunhold2017-05-01
| | | | | | | | | | | | | | | | | | | | | | The tool-specific flags were LDLIBS and not LDFLAGS, because we specify the libraries we want to link in, not flags to the linker itself. The order was broken as it didn't allow -Wl,--as-needed or other things highly dependent on the order of arguments. I also wanted to add an explicit .c.o suffix rule. This way, it is clearer what is happening in the Makefile and the form of compilation output is controllable.
| * Add Alexander and Mattias to LICENSELaslo Hunhold2017-04-16
| |
| * Bring cc-command-line in orderLaslo Hunhold2017-04-16
| | | | | | | | | | | | | | | | | | Of course, you want the libraries to come last in order of execution. Additionally, in case the libraries provided with $($*-LDFLAGS) contain unresolved symbols, we want to give the opportunity for the user to provide the necessary general symbols, whatever they may be, last. Thanks Duncaen for reporting this!
* | d/changelog: release to unstableParide Legovini2018-03-22
| |
* | Package now maintained within the PhotoTools teamParide Legovini2018-03-22
| |
* | d/changelog: mention changes to d/copyrightdebian/3-5archive/debian/3-5Paride Legovini2018-02-24
| |
* | Add missing changes to d/copyright; bump dateParide Legovini2018-02-23
| |
* | Release 3-5 to unstableParide Legovini2018-02-22
| |
* | Add d/upstream/metadataParide Legovini2018-02-22
| |
* | Update the Vcs- fields (repo moved to salsa)Paride Legovini2018-02-22
| |
* | Do not override Debian's build flagsParide Legovini2018-02-16
| |
* | priority-extra-is-replaced-by-priority-optionalParide Legovini2018-02-16
| |
* | Use https URIs; d/watch version=4; copyright yearsParide Legovini2018-02-16
| |
* | Bump Standards-Version and compat levelParide Legovini2018-02-16
| |
* | Add d/.gitignoreParide Legovini2018-02-16
| |