From: Michael Tremer Date: Tue, 17 Jun 2008 17:03:16 +0000 (+0200) Subject: make.sh will now create a .config by itself if there is none. X-Git-Tag: v3.0-alpha1~948 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46bbc95f7dcb10b3c102dac464fc60f46570bda7;p=ipfire-3.x.git make.sh will now create a .config by itself if there is none. --- diff --git a/.config-default b/.config-default index 3e585f033..ae3148f62 100644 --- a/.config-default +++ b/.config-default @@ -21,6 +21,14 @@ # below to your own needs. # ############################################################################### +############################################################################### +# UUID # +############################################################################### +# This ID is for uniquely identify a build host. # +############################################################################### + +#UUID=@UUID@ + ############################################################################### # Target Architecture # ############################################################################### diff --git a/tools/make-include b/tools/make-include index 20bebcd1f..3d28ecd94 100644 --- a/tools/make-include +++ b/tools/make-include @@ -64,10 +64,12 @@ export BASEDIR # ############################################################################### -if [ -e .config ]; then - . $BASEDIR/.config +if ! [ -e .config ]; then + sed -e "s/@UUID@/$(uuidgen 2>/dev/null || cat /proc/sys/kernel/random/uuid)/" \ + -e "s/^#UUID=/UUID=/" < $BASEDIR/.config-default > $BASEDIR/.config fi +. $BASEDIR/.config ############################################################################### #