replacefile.plug

Section: rpmrebuild plugin (1)
Updated: 2.20
Index

NAME

replacefile.plug - a plugin for rpmrebuild, to replace a file content

SYNOPSIS

SRC=new_file_content DEST=file_to_be_replaced rpmrebuild --include replacefile.plug <packagename>
rpmrebuild --change-files="replacefile.sh -s new_file_content -d file_to_be_replaced" <packagename>
SRC=new_file_content DEST=file_to_be_replaced rpmrebuild --change-files="replacefile.sh" <packagename>

DESCRIPTION

this plugin allow to replace a file content by another file.

OPTIONS

-h, --help
output help information plugins option and exit.
-v, --version
print plugin version and exit

FILES

replacefile.sh
contains the code to be executed
replacefile.plug
contains the code to be included
replacefile.plug.1
is this man page

ENVIRONMENT

SRC
the path to the new file content
DEST
the path to the file to be replaced

EXAMPLES

rpmrebuild --change-files="replacefile.sh -s /tmp/motd -d etc/motd" setup

SRC=/tmp/motd DEST=etc/motd rpmrebuild --change-files="replacefile.sh setup

SRC=/tmp/motd DEST=etc/motd rpmrebuild --include replacefile.plug setup

AUTHORS

Eric Gerbier <eric.gerbier@tutanota.com>

See <URL:http://rpmrebuild.sourceforge.net/>.

NOTES

COPYRIGHT

rpmrebuild is copyright (C) 2024 by Eric Gerbier.
this program is distributed under GNU General Public License
It is provided "as is", without any express or implied warranties. See the file COPYING for details.

SEE ALSO

rpm(8), rpmbuild(8), rpmrebuild_plugins(1) ,
compat_digest.plug(1) , demo.plug(1) , demofiles.plug(1) , empty_section.plug(1) , exclude_file.plug(1) , file2pacDep.plug(1) , nodoc.plug(1) , replacefile(1) , set_tag.plug(1) , uniq.plug(1) , un_prelink.plug(1) , unset_tag.plug(1) ,
man -k rrp for plugins specific manpages


Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILES
ENVIRONMENT
EXAMPLES
AUTHORS
NOTES
COPYRIGHT
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 14:33:25 GMT, November 14, 2024