NAME
upmake - Simple script to update list of files in a make or project file.
VERSION
version 0.2
SYNOPSIS
upmake <file-to-update> [<file-to-update>...]
For example:
upmake GNUmakefile myproject.vcxproj
to update the source/header files listed in the makefile and project file from the master file list in the "files" file.
DESCRIPTION
This script can be used to update the list of source and possible header files in make and/or project files. It is useful for projects that can be built by different tools as it allows to have a single master list of the files used in the project and update all the rest automatically.
The master list of files is assumed to be in the file named just "files"
in the current working directory.
OPTIONS
--quiet
and --verbose
options control the script output in the expected way. The latter modifies the behaviour of --dry-run
option which on its own would just output if the files would be updated or not, to show a unified diff with the changes that would be done to them.
The --sources
and --headers
options are mostly useful when updating a project file, to specify the variables which contain the sources and headers to use in them. They can be repeated several times to combine the values of several variables. Notice that by using Makefile::Update module directly, it is possible to manipulate the files list in more advanced ways, e.g. adjust the file paths, the command line script covers only the most common case.
SEE ALSO
AUTHOR
Vadim Zeitlin <vz-cpan@zeitlins.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Vadim Zeitlin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.