replacefile.plug.1rrp - Man Page

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

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

Referenced By

rpmrebuild_plugins(1).

2.20 Eric Gerbier rpmrebuild plugin