Browse Source

configurable builds

tags/nilmdbuntu-1
Jim Paris 8 years ago
parent
commit
bdd76bfe0b
4 changed files with 10 additions and 3 deletions
  1. +0
    -1
      config
  2. +8
    -0
      config
  3. +1
    -1
      enter.sh
  4. +1
    -1
      full-rebuild.sh

+ 0
- 1
config View File

@@ -1 +0,0 @@
config-12.10

+ 8
- 0
config View File

@@ -0,0 +1,8 @@
#!/bin/bash

if [ -z "$BUILD_CONFIG" ] ; then
echo "Set BUILD_CONFIG first"
exit 1
fi

. config-$BUILD_CONFIG

+ 1
- 1
enter.sh View File

@@ -3,7 +3,7 @@
# make sure this was run as root
if [ $UID -ne 0 ] ; then
echo "Need to be root; trying sudo"
exec sudo $0 "$@"
exec sudo env BUILD_CONFIG=$BUILD_CONFIG $0 "$@"
fi

# enter the chroot and run the command (if supplied) or a shell


+ 1
- 1
full-rebuild.sh View File

@@ -4,7 +4,7 @@
# passwords during execution
if [ $UID -ne 0 ] ; then
echo "Need to be root; trying sudo"
exec sudo nice $0 "$@"
exec sudo nice env BUILD_CONFIG=$BUILD_CONFIG $0 "$@"
fi

. config || exit 0


Loading…
Cancel
Save