summaryrefslogtreecommitdiffstats
path: root/source-builder/sb-defaults (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sb: Use shebang env pythonChris Johns2020-08-251-10/+13
| | | | Closes #4037
* sb: Add support to search for a suitable version of python.Chris Johns2018-10-211-14/+10
| | | | | | | | The command python has been removed from upstream python and python2 and python3 is now used. This patch wraps the commands in a shell script that locates a suitable python to run. Updates #3537
* sb: Update code base to support Python3 and Python2.Chris Johns2016-03-071-1/+3
| | | | | | Fix Windows support to allow MSYS2 Python to be used. Updates #2619.
* Refactor defaults, macros and options.Chris Johns2013-04-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support building snapshots and pre-release source the defaults has been refactored. The defaults have been moved to a stand alone file and a macros.py module added. This modile abstracts the old default dictionary turning it into a class. The macros class can load macros from a file therefore the defaults have been moved to a stand alone file. The use of defaults has been removed from the project. The only case where it is used in the options where the defaults are read from a file. Macros are used everywhere now. The defaults.py has been moved to the option.py and the separate options and defaults values has been moved to a new pattern. When constructing an object that needs macros and options if the macros passed in is None the defaults from the options are used. This makes it clear when the defaults are being used or when a modified set of macros is being used. The macros class support maps. The default is 'global' and where all the defaults reside and where configuratiion file changes end up. Maps allow macros to be read from a file and override the values being maintained in the 'global' map. Reading a macro first checks the map and if not present checks the 'global' map. The addition of maps to the macros provides the base to support snapshots and pre-release testing with standard configurations. This functionality needs to be added. It works by letting to specify a snapshot with: source0: none, override, 'my-dist.tar.bz2' and it will be used rather the value from the standard configuration. With a build set you need to also specify the package these macros are for. The maps provide this.
* Add the sb-defaults command to print a hosts defaults.Chris Johns2013-02-231-0/+29