Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 739157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:22:04+00:00 2026-05-14T08:22:04+00:00

I am having trouble defining and automating my build process despite simple requirements: Every

  • 0

I am having trouble defining and automating my build process despite simple requirements:

  1. Every build should have a unique build number.
  2. Every tagged release should be reproducible

What I have:

  • A C++, Red Hat Enterprise Linux 5.x, Subversion development environment.
  • A build machine ( actually a virtual machine )
  • A version.h file with #defines for major, minor, and buildnumber.
  • A script for incrementing the version.h buildnumber.
  • A rpmbuild spec file that exports the tagged Subversion source, builds, and makes the rpm installer packages.

Questions:

  • Assuming multiple developers per project, when should the build number be incremented and version.h file be checked-in? The build machine? Some sort of Subversion hook? Pre-build or post-build?

Thanks in advance for those willing to take the time to share their experience with build processes.

-Ed
Linux newbie. Former Windows C++/.NET developer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:22:04+00:00Added an answer on May 14, 2026 at 8:22 am

    Why not modify your build process so that it grabs the latest revision number from the repository and uses that as the build number?

    Assuming svn incorporates all of the elements that go into a build of your product, that should give you a unique number per potential differing build, and make it easy to match up what the state of the codebase was at the time of building. If there are other elements that can vary with time, you could add another item concatenated to the revision number – perhaps a date/time value.

    You’ll never have to worry about manually incrementing it, because each time a developer commits they’ll increment the revision number automatically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble defining the content-type of an element (phonenumber) whilst at the
I am having trouble with IE7. I have a header, which is an IMG.
I think this is a pretty simple question but I'm having trouble finding the
I am having trouble defining bindings using ninject. I am in a standard ASP.NET
I'm having trouble understanding why java secure coding is important. For example, why is
I am having trouble with inheritance mapping in Linq to Sql. I am using
Problem: I am having trouble generating an xpath expression that selects a node in
I'm having a bit of trouble with ReferencePropertys in App Engine (Python). For a
Trying the following tutorial http://www.androidsdkforum.com/android-sdk-development/3-oauth-twitter.html i am having trouble understanding callback URL my twitter
having trouble with a double component uipicker, everything shows up and it fills with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.