Das Build wird jetzt im Browserkopf angezeigt
authorcasemaster <casemaster@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 2 Jul 2006 09:16:40 +0000 (09:16 +0000)
committercasemaster <casemaster@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 2 Jul 2006 09:16:40 +0000 (09:16 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@191 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/cfgroot/header.pl
make.sh

index 659d41a..805489c 100644 (file)
@@ -87,6 +87,13 @@ if ( -d "/var/ipfire/langs/${language}/" ) {
     };
 };
 
+### Read IPFire Buildversion
+$FIREBUILD = "Datei firebuild nicht gefunden\n";
+if (open(MYFile, "<${swroot}/firebuild")) {
+    $FIREBUILD = <MYFile>;
+    $FIREBUILD = "(Build: $FIREBUILD)";
+    close(_File);
+};
 
 require "${swroot}/langs/en.pl";
 require "${swroot}/langs/${language}.pl";
@@ -714,7 +721,7 @@ sub openpage {
     my $h2 = gettitle($menu);
     my $helpuri = get_helpuri();
 
-    $title = "IPFire - $title";
+    $title = "IPFire - $title $FIREBUILD";
     if ($settings{'WINDOWWITHHOSTNAME'} eq 'on') {
         $title =  "$settings{'HOSTNAME'}.$settings{'DOMAINNAME'} - $title"; 
     }
diff --git a/make.sh b/make.sh
index 5fe0035..eea54f4 100644 (file)
--- a/make.sh
+++ b/make.sh
   KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'`
   MACHINE=`uname -m`
 
+  # Setzen des IPFire Builds
+  if [ -e ./.svn ]; then
+    FIREBUILD=`cat .svn/entries |sed -n 's/^[ \t]*revision=\"// p' | sed -n 's/\".*$// p'`
+#    VERSION="$VERSION (Build:$FIREBUILD)"
+  fi
+
   # Debian specific settings
   if [ ! -e /etc/debian_version ]; then
        FULLPATH=`which $0`
@@ -900,10 +906,10 @@ build)
        buildipcop
 
        # Setzen des IPFire Builds
-       if [ -e ./.svn ]; then
-               cat .svn/entries |sed -n 's/^[ \t]*revision=\"// p' | sed -n 's/\".*$// p' > $LFS/home/httpd/html/firebuild
+       if [ $FIREBUILD ]; then
+               echo "$FIREBUILD" > $CONFIG_ROOT/firebuild
        else
-               echo "_(OvO)_" > $LFS/home/httpd/html/firebuild
+               echo "_(OvO)_" > $CONFIG_ROOT/firebuild
        fi
 
        buildinstaller