Index: utils/Makefile ================================================================== --- utils/Makefile +++ utils/Makefile @@ -5,11 +5,12 @@ ${OFDNS} \ ${OFHASH} \ ${OFHTTP} MAN = objfw-compile.1 \ - objfw-config.1 + objfw-config.1 \ + objfw-embed.1 include ../buildsys.mk DISTCLEAN = objfw-config ADDED utils/objfw-embed.1 Index: utils/objfw-embed.1 ================================================================== --- /dev/null +++ utils/objfw-embed.1 @@ -0,0 +1,36 @@ +.\" +.\" Copyright (c) 2008-2024 Jonathan Schleifer +.\" +.\" All rights reserved. +.\" +.\" This program is free software: you can redistribute it and/or modify it +.\" under the terms of the GNU Lesser General Public License version 3.0 only, +.\" as published by the Free Software Foundation. +.\" +.\" This program is distributed in the hope that it will be useful, but WITHOUT +.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License +.\" version 3.0 for more details. +.\" +.\" You should have received a copy of the GNU Lesser General Public License +.\" version 3.0 along with this program. If not, see +.\" . +.\" +.TH OBJFW-EMBED 1 +.SH NAME +objfw-embed - create source code to embed a file into a program +.SH SYNOPSIS +.B objfw-embed +.I source_file +.I filename +.I output +.SH DESCRIPTION +.B objfw-embed +is a program which creates source code to embed a file into a program, which +can then be accessed using the \fBembedded:\fR IRI scheme in ObjFW. +.SH EXAMPLES +Create the source file \fBlogo.png.m\fR for the file \fBassets/logo.png\fR, +which will be registered under the path \fBlogo.png\fR so that it can be +accessed under the IRI \fBembedded:logo.png\fR: +.PP + objfw-embed assets/logo.png logo.png logo.png.m