#! /bin/sh

# Script to update base/inc/RVersion.h.
# Called by main Makefile as soon as build/version_number has been updated.
#
# Author: Fons Rademakers, 28/4/2000

CINT=cint/main/cint_tmp
SCRIPT=build/version.cxx

$CINT $SCRIPT

if test "x`uname | grep -i cygwin`" != "x"; then
    echo 'Need to run "dos2unix base/inc/RVersion.h"'
    dos2unix base/inc/RVersion.h
fi

echo "New version is `cat build/version_number`. Updating dependencies..."

# compile all files that were out-of-date prior to makeversion.sh
make -o base/inc/RVersion.h

# touch all files that don't need recompilation (need to do this 3 times
# to walk through chain of dependencies)
make -s -t; make -s -t; make -s -t

# recompile only base/src/TROOT.cxx
touch base/src/TROOT.cxx
touch base/inc/TVersionCheck.h
touch rootx/src/rootxx.cxx
make

echo "root-config --version reports: `bin/root-config --prefix=. --version`"

#! /bin/sh

# Script to update base/inc/RVersion.h.
# Called by main Makefile as soon as build/version_number has been updated.
#
# Author: Fons Rademakers, 28/4/2000

CINT=cint/main/cint_tmp
SCRIPT=build/version.cxx

$CINT $SCRIPT

if test "x`uname | grep -i cygwin`" != "x"; then
    echo 'Need to run "dos2unix base/inc/RVersion.h"'
    dos2unix core/base/inc/RVersion.h
fi

echo "New version is `cat build/version_number`. Updating dependencies..."

# compile all files that were out-of-date prior to makeversion.sh
make -o core/base/inc/RVersion.h

# touch all files that don't need recompilation (need to do this 3 times
# to walk through chain of dependencies)
make -s -t; make -s -t; make -s -t

# recompile only core/base/src/TROOT.cxx
touch core/base/src/TROOT.cxx
touch core/base/inc/TVersionCheck.h
touch rootx/src/rootxx.cxx
make

echo "root-config --version reports: `bin/root-config --prefix=. --version`"

Implement changes required by the new directory structure
Implement changes required by the new directory structure


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@23835 27541ba8-7e3a-0410-8455-c3a389f83636
