Skip to content
Snippets Groups Projects
Commit fabb7eb2 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

sanitize binary distribution tar file name. Name now is:

root_v5.01.01.linuxicc.tar.gz
or
root_v5.01.01.linux-gcc-3.2.tar.gz
where only the version number changes and the root-config --arch output is
used to indicate the platform. Due to the many different versions of gcc
we also add the gcc version in case gcc is used. Previously we used uname
which produced wildly different results depending on the platform.


git-svn-id: http://root.cern.ch/svn/root/trunk@11758 27541ba8-7e3a-0410-8455-c3a389f83636
parent 4a56c42a
Branches
Tags
No related merge requests found
...@@ -211,6 +211,7 @@ endif ...@@ -211,6 +211,7 @@ endif
ifneq ($(findstring gnu,$(COMPILER)),) ifneq ($(findstring gnu,$(COMPILER)),)
GCC_MAJOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f1) GCC_MAJOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f1)
GCC_MINOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f2) GCC_MINOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f2)
GCC_VERS := gcc-$(GCC_MAJOR).$(GCC_MINOR)
endif endif
##### f77 options ##### ##### f77 options #####
...@@ -420,7 +421,7 @@ map:: $(RLIBMAP) ...@@ -420,7 +421,7 @@ map:: $(RLIBMAP)
dist: dist:
@rm -f $(ROOTMAP) @rm -f $(ROOTMAP)
@$(MAKE) map @$(MAKE) map
@$(MAKEDIST) @$(MAKEDIST) $(GCC_VERS)
distsrc: distsrc:
@$(MAKEDISTSRC) @$(MAKEDISTSRC)
......
...@@ -6,14 +6,12 @@ ...@@ -6,14 +6,12 @@
# Author: Fons Rademakers, 29/2/2000 # Author: Fons Rademakers, 29/2/2000
ROOTVERS=`cat build/version_number | sed -e 's/\//\./'` ROOTVERS=`cat build/version_number | sed -e 's/\//\./'`
MACHINE=`uname` TYPE=`bin/root-config --arch`
OSREL=`uname -r` if [ "x$1" = "x" ]; then
if [ "x$MACHINE" = "xCYGWIN_NT-5.1" ]; then TARFILE=root_v$ROOTVERS.$TYPE.tar
TYPE=$MACHINE
else else
TYPE=$MACHINE.$OSREL TARFILE=root_v$ROOTVERS.$TYPE-$1.tar
fi fi
TARFILE=root_v$ROOTVERS.$TYPE.tar
rm -f ../${TARFILE}.gz rm -f ../${TARFILE}.gz
......
...@@ -6,10 +6,7 @@ ...@@ -6,10 +6,7 @@
# Author: Fons Rademakers, 29/2/2000 # Author: Fons Rademakers, 29/2/2000
ROOTVERS=`cat build/version_number | sed -e 's/\//\./'` ROOTVERS=`cat build/version_number | sed -e 's/\//\./'`
MACHINE=`uname` TYPE=`bin/root-config --arch`
OSREL=`uname -r`
#TYPE=$MACHINE.$OSREL
TYPE=win32
TARFILE=root_v$ROOTVERS.$TYPE.tar TARFILE=root_v$ROOTVERS.$TYPE.tar
TAR=/bin/tar TAR=/bin/tar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment