mirror of
https://github.com/clearlinux/bundle-chroot-builder.git
synced 2026-06-29 17:15:49 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b92b2eff2 | |||
| e6e3bab777 | |||
| ff6a30cc43 |
@@ -1,3 +1,23 @@
|
||||
Building this Project
|
||||
=====================
|
||||
For help using automake see
|
||||
http://www.gnu.org/software/automake/manual/html_node/index.html
|
||||
|
||||
Configure:
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing
|
||||
# Defaults to /usr/local or specific --prefix=/usr
|
||||
# to overwrite the installed version
|
||||
./configure
|
||||
|
||||
Build:
|
||||
make
|
||||
|
||||
Install:
|
||||
make -n install
|
||||
sudo make install
|
||||
|
||||
Configuration File
|
||||
==================
|
||||
Please update the configuration file paths to point to where your
|
||||
|
||||
@@ -25,6 +25,7 @@ import argparse
|
||||
import configparser
|
||||
import os
|
||||
import os.path
|
||||
import io
|
||||
import platform
|
||||
import re
|
||||
import shutil
|
||||
@@ -54,9 +55,20 @@ def get_config(args):
|
||||
if args.config:
|
||||
buildconf = args.config
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
print("Reading from %s" % buildconf)
|
||||
config.read(buildconf)
|
||||
cfg_txt = ""
|
||||
# Check that the environment variables in the config file are valid
|
||||
pattern = re.compile("\$\{?(\w+)\}?")
|
||||
for i, line in enumerate(open(buildconf, 'r')):
|
||||
for match in re.finditer(pattern, line):
|
||||
if not match.group(1) in os.environ:
|
||||
print("ERROR:\nbuilder.conf contains an undefined environment variable: %s on line %s\n"
|
||||
% (i+1, match.group(1)))
|
||||
exit(1)
|
||||
cfg_txt += os.path.expandvars(line)
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.readfp(io.StringIO(cfg_txt))
|
||||
return config
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
AC_PREREQ([2.68])
|
||||
AC_INIT([bundle-chroot-builder],[1.11],[tudor.marcu@intel.com],[bundle-chroot-builder])
|
||||
AC_INIT([bundle-chroot-builder],[1.12],[tudor.marcu@intel.com],[bundle-chroot-builder])
|
||||
AM_INIT_AUTOMAKE([foreign silent-rules color-tests no-dist-gzip dist-xz])
|
||||
AC_CONFIG_FILES(Makefile)
|
||||
AC_PREFIX_DEFAULT(/usr/local)
|
||||
|
||||
Reference in New Issue
Block a user