- if [ -n "$DEBUG" ]; then set -xv; fi
- echo "\
-Usage: builder [-D|--debug] [-V|--version] [-a|--as_anon] [-b|-ba|--build]
-
- [-bb|--build-binary] [-bs|--build-source] [-u|--try-upgrade]
- [{-B|--branch} <branch>] [{-d|--cvsroot} <cvsroot>] [-g|--get]
- [-h|--help] [{-l,--logtofile} <logfile>] [-m|--mr-proper]
- [-q|--quiet] [--date <yyyy-mm-dd> [-r <cvstag>] [{-T--tag <cvstag>]
- [-Tvs|--tag-version-stable] [-Tvn|--tag-version-nest]
- [-Ts|--tag-stable] [-Tn|--tag-nest] [-Tv|--tag-version]
- [-nu|--no-urls] [-v|--verbose] [--opts <rpm opts>]
- [--with/--without <feature>] [--define <macro> <value>] <package>[.spec]
-
- -5, --update-md5
- - update md5 comments in spec, implies -nd
- -a5, --add-md5 - add md5 comments to URL sources, implies -nc -nd
- -D, --debug - enable script debugging mode,
- -V, --version - output builder version
- -a, --as_anon - get files via pserver as cvs@$CVS_SERVER,
- -b, -ba,
- --build - get all files from CVS repo or HTTP/FTP and build
- package from <package>.spec,
- -bb, --build-binary
- - get all files from CVS repo or HTTP/FTP and build
- binary only package from <package>.spec,
- -bs,
- --build-source - get all files from CVS repo or HTTP/FTP and only
- pack them into src.rpm,
- -B, --branch - add branch
- -c, --clean - clean all temporarily created files (in BUILD,
- SOURCES, SPECS and \$RPM_BUILD_ROOT),
- -d <cvsroot>, --cvsroot <cvsroot>
- - setup \$CVSROOT,
- --define <macro> <value>
- - define a macro <macro> with value <value>,
- -g, --get - get <package>.spec and all related files from
- CVS repo or HTTP/FTP,
- -h, --help - this message,
- -l <logfile>, --logtofile <logfile>
- - log all to file,
- -m, --mr-proper - only remove all files related to spec file and
- all work resources,
- -nc, --no-cvs - don't download sources from CVS, if source URL is
- given,
- -ncs, --no-cvs-specs
- - don't check specs in CVS
- -nd, --no-distfiles
- - don't download from distfiles
- -nm, --no-mirrors - don't download from mirror, if source URL is given,
- -nu, --no-urls - don't try to download from FTP/HTTP location,
- -ns, --no-srcs - don't download Sources
- -ns0, --no-source0
- - don't download Source0
- --opts <rpm opts>
- - additional options for rpm
- -q, --quiet - be quiet,
- --date yyyy-mm-dd
- - build package using resources from specified CVS
- date,
- -r <cvstag>, --cvstag <cvstag>
- - build package using resources from specified CVS
- tag,
- -T <cvstag> , --tag <cvstag>
- - add cvs tag <cvstag> for files,
- -Tvs, --tag-version-stable
- - add cvs tags STABLE and NAME-VERSION-RELESE for files,
- -Tvn, --tag-version-nest
- - add cvs tags NEST and NAME-VERSION-RELESE for files,
- -Ts, --tag-stable
- - add cvs tag STABLE for files,
- -Tn, --tag-nest
- - add cvs tag NEST for files,
- -Tv, --tag-version
- - add cvs tag NAME-VERSION-RELESE for files,
- -v, --verbose - be verbose,
- -u, --try-upgrade
- - check version, and try to upgrade package
- -un, --try-upgrade-with-float-version
- - as above, but allow float version
- -U, --update
- - refetch sources, don't use distfiles, and update md5
- comments
- --with/--without <feature>
- - conditional build package depending on
- %_with_<feature>/%_without_<feature> macro
- switch
+ if [ -n "$DEBUG" ]; then set -xv; fi
+ echo "\
+Usage: builder [-D|--debug] [-V|--version] [--short-version] [-a|--as_anon] [-b|-ba|--build]
+[-bb|--build-binary] [-bs|--build-source] [-bc] [-bi] [-bl] [-u|--try-upgrade]
+[{-cf|--cvs-force}] [{-B|--branch} <branch>] [{-d|--cvsroot} <cvsroot>]
+[-g|--get] [-h|--help] [--http] [{-l|--logtofile} <logfile>] [-m|--mr-proper]
+[-q|--quiet] [--date <yyyy-mm-dd> [-r <cvstag>] [{-T|--tag <cvstag>]
+[-Tvs|--tag-version-stable] [-Ts|--tag-stable] [-Tv|--tag-version]
+[{-Tp|--tag-prefix} <prefix>] [{-tt|--test-tag}]
+[-nu|--no-urls] [-v|--verbose] [--opts <rpm opts>] [--short-circuit]
+[--show-bconds] [--with/--without <feature>] [--define <macro> <value>]
+<package>[.spec][:cvstag]
+
+-5, --update-md5 - update md5 comments in spec, implies -nd -ncs
+-a5, --add-md5 - add md5 comments to URL sources, implies -nc -nd -ncs
+-n5, --no-md5 - ignore md5 comments in spec
+-D, --debug - enable builder script debugging mode,
+-debug - produce rpm debug package (same as --opts -debug)
+-V, --version - output builder version string
+--short-version - output builder short version
+-a, --as_anon - get files via pserver as cvs@$CVS_SERVER,
+-b, -ba, --build - get all files from CVS repo or HTTP/FTP and build package
+ from <package>.spec,
+-bb, --build-binary - get all files from CVS repo or HTTP/FTP and build binary
+ only package from <package>.spec,
+-bp, --build-prep - execute the %prep phase of <package>.spec,
+-bc - execute the %build phase of <package>.spec,
+-bi - execute the %install phase of <package>.spec
+-bl - execute the %files phase of <package>.spec
+-bs, --build-source - get all files from CVS repo or HTTP/FTP and only pack
+ them into src.rpm,
+--short-circuit - short-circuit build
+-B, --branch - add branch
+-c, --clean - clean all temporarily created files (in BUILD, SOURCES,
+ SPECS and \$RPM_BUILD_ROOT),
+-cf, --cvs-force - use -F when tagging (useful when moving branches)
+-d <cvsroot>, --cvsroot <cvsroot>
+ - setup \$CVSROOT,
+--define <macro> <value>
+ - define a macro <macro> with value <value>,
+--nodeps - rpm won't check any dependences
+-g, --get - get <package>.spec and all related files from CVS repo
+ or HTTP/FTP,
+-h, --help - this message,
+--http - use http instead of ftp,
+-l <logfile>, --logtofile <logfile>
+ - log all to file,
+-m, --mr-proper - only remove all files related to spec file and all work
+ resources,
+-nc, --no-cvs - don't download sources from CVS, if source URL is given,
+-ncs, --no-cvs-specs
+ - don't check specs in CVS
+-nd, --no-distfiles - don't download from distfiles
+-nm, --no-mirrors - don't download from mirror, if source URL is given,
+-nu, --no-urls - don't try to download from FTP/HTTP location,
+-ns, --no-srcs - don't download Sources
+-ns0, --no-source0 - don't download Source0
+-nn, --no-net - don't download anything from the net
+--no-init - don't initialize builder paths (SPECS and SOURCES)
+-ske,
+--skip-existing-files - skip existing files in get_files
+--opts <rpm opts> - additional options for rpm
+-q, --quiet - be quiet,
+--date yyyy-mm-dd - build package using resources from specified CVS date,
+-r <cvstag>, --cvstag <cvstag>
+ - build package using resources from specified CVS tag,
+-A - build package using CVS resources as any sticky tags/date/kopts being reset.
+-R, --fetch-build-requires
+ - fetch what is BuildRequired,
+-RB, --remove-build-requires
+ - remove all you fetched with -R or --fetch-build-requires
+ remember, this option requires confirmation,
+-FRB, --force-remove-build-requires
+ - remove all you fetched with -R or --fetch-build-requires
+ remember, this option works without confirmation,
+-sd, --source-distfiles - list sources available from distfiles (intended for offline
+ operations; does not work when Icon field is present
+ but icon file is absent),
+-sc, --source-cvs - list sources available from CVS
+-sdp, --source-distfiles-paths - list sources available from distfiles -
+ paths relative to distfiles directory (intended for offline
+ operations; does not work when Icon field is present
+ but icon file is absent),
+-sf, --source-files - list sources - bare filenames (intended for offline
+ operations; does not work when Icon field is present
+ but icon file is absent),
+-sp, --source-paths - list sources - filenames with full local paths (intended for
+ offline operations; does not work when Icon field is present
+ but icon file is absent),
+-su, --source-urls - list urls - urls to sources and patches
+ intended for copying urls with spec with lots of macros in urls
+-T <cvstag> , --tag <cvstag>
+ - add cvs tag <cvstag> for files,
+-Tvs, --tag-version-stable
+ - add cvs tags STABLE and NAME-VERSION-RELEASE for files,
+-Ts, --tag-stable
+ - add cvs tag STABLE for files,
+-Tv, --tag-version
+ - add cvs tag NAME-VERSION-RELEASE for files,
+-Tp, --tag-prefix <prefix>
+ - add <prefix> to NAME-VERSION-RELEASE tags,
+-tt, --test-tag <prefix>
+ - fail if tag is already present,
+-ir, --integer-release-only
+ - allow only integer and snapshot releases
+-v, --verbose - be verbose,
+-u, --try-upgrade - check version, and try to upgrade package
+-un, --try-upgrade-with-float-version
+ - as above, but allow float version
+-U, --update - refetch sources, don't use distfiles, and update md5 comments
+-Upi, --update-poldek-indexes
+ - refresh or make poldek package index files.
+-np, --nopatch <patchnumber>
+ - don't apply <patchnumber>
+--show-bconds - show available conditional builds, which can be used
+ - with --with and/or --without switches.
+--show-bcond-args - show active bconds, from ~/.bcondrc. this is used by
+ ./repackage.sh script. in other words, the output is
+ parseable by scripts.
+--with/--without <feature>
+ - conditional build package depending on %_with_<feature>/
+ %_without_<feature> macro switch. You may now use
+ --with feat1 feat2 feat3 --without feat4 feat5 --with feat6
+ constructions. Set GROUP_BCONDS to yes to make use of it.
+--target <platform>, --target=<platform>
+ - build for platform <platform>.
+--init-rpm-dir - initialize ~/rpm directory structure