]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
make.sh will now create a .config by itself if there is none.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Jun 2008 17:03:16 +0000 (19:03 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Jun 2008 17:03:16 +0000 (19:03 +0200)
.config-default
tools/make-include

index 3e585f0337c88dea8c9a79313421758b04449c12..ae3148f62364210b8a1852b3f47ed3b5385aeb72 100644 (file)
 # below to your own needs.                                                    #
 ###############################################################################
 
+###############################################################################
+# UUID                                                                        #
+###############################################################################
+# This ID is for uniquely identify a build host.                              #
+###############################################################################
+
+#UUID=@UUID@
+
 ###############################################################################
 # Target Architecture                                                         #
 ###############################################################################
index 20bebcd1f9045edcf45297ef6e34fe24efe529ef..3d28ecd94817c83c12b6df9ceb6b226723ef9238 100644 (file)
@@ -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
 
 ###############################################################################
 #