diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-02-02 16:12:13 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-02-02 16:12:13 +0000 |
commit | d7836cd689e1eecb497de0c4589b58a509edd661 (patch) | |
tree | d142cb0be77cb143f441ed92bf842609895fb993 /cpp/makedist.py | |
parent | various fixes (diff) | |
download | ice-d7836cd689e1eecb497de0c4589b58a509edd661.tar.bz2 ice-d7836cd689e1eecb497de0c4589b58a509edd661.tar.xz ice-d7836cd689e1eecb497de0c4589b58a509edd661.zip |
added Ice-rpmbuild generation
Diffstat (limited to 'cpp/makedist.py')
-rwxr-xr-x | cpp/makedist.py | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/cpp/makedist.py b/cpp/makedist.py index a563957635b..9e34c5dd30a 100755 --- a/cpp/makedist.py +++ b/cpp/makedist.py @@ -235,6 +235,30 @@ else: os.system("cvs " + quiet + " -d cvs.zeroc.com:/home/cvsroot export " + tag + " ice") # +# Get Ice version. +# +config = open(os.path.join("ice", "include", "IceUtil", "Config.h"), "r") +version = re.search("ICE_STRING_VERSION \"([0-9\.b]*)\"", config.read()).group(1) +mmversion = re.search("([0-9]+\.[0-9b]+)[\.0-9]*", version).group(1) + +print "Fixing version in various files..." +fixVersion(find("ice", "README*"), version, mmversion) +fixVersion(find("ice", "INSTALL*"), version, mmversion) +fixVersion(find("ice/install/rpm", "*.conf"), version, mmversion) + +print "Creating Ice-rpmbuild..." +rpmbuildver = "Ice-rpmbuild-" + version +if verbose: + quiet = "v" +else: + quiet = "" +os.system("tar c" + quiet + "f " + rpmbuildver + ".tar " + + "-C ice/install -C rpm {icegridregistry,icegridnode,glacier2router}.{conf,suse,redhat} " + + "-C ../unix THIRD_PARTY_LICENSE.Linux README.Linux-RPM SOURCES.Linux " + + "-C ../thirdparty/php ice.ini") +os.system("gzip -9 " + rpmbuildver + ".tar") + +# # Remove files. # print "Removing unnecessary files..." @@ -364,16 +388,6 @@ if not skipDocs: os.system("gmake clean") os.chdir(cwd) -# -# Get Ice version. -# -config = open(os.path.join("ice", "include", "IceUtil", "Config.h"), "r") -version = re.search("ICE_STRING_VERSION \"([0-9\.b]*)\"", config.read()).group(1) -mmversion = re.search("([0-9]+\.[0-9b]+)[\.0-9]*", version).group(1) - -print "Fixing version in README and INSTALL files..." -fixVersion(find("ice", "README*"), version, mmversion) -fixVersion(find("ice", "INSTALL*"), version, mmversion) # # Create archives. @@ -401,7 +415,7 @@ else: os.system("zip -9r" + quiet + " " + icever + ".zip " + icever) # -# Copy files (README, etc.). +# Copy CHANGES # shutil.copyfile(os.path.join(icever, "CHANGES"), "Ice-" + version + "-CHANGES") |