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 47883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:11:33+00:00 2026-05-10T16:11:33+00:00

Is there a way to have a file that is modified / touched whenever

  • 0

Is there a way to have a file that is modified / touched whenever the WC is updated to a new revision? Or, as the second-best option, whenever svn update is executed?

Here’s the motivation: I want to have the SVN revision number inside my executable. So I have to run SubWCRev as part of the build. The output file of SubWCRev is re-created every time, even if the revision number has not changed. This means that the exe is linked on every build, even if nothing has changed. I want it to be linked only as needed.

  • 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. 2026-05-10T16:11:34+00:00Added an answer on May 10, 2026 at 4:11 pm
    1. Get the SubWCRev output into a temporary file
    2. Compare this file to the current revision-number file
    3. Overwrite it with the temp file only if the two are different
    4. Delete the temporary file

    You might even be able to do this with a .bat file (using fc). Something like…

    REM ***UNTESTED*** FC temp.rev curr.rev | FIND 'FC: no dif' > nul  IF NOT ERRORLEVEL 1 COPY /Y temp.rev curr.rev DEL temp.rev 

    Edit: As an aside, you can do this in Mercurial by making the rev-number-file depend on .hg/dirstate.

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

Sidebar

Related Questions

Is there a way to have an file browser for Flash that allows the
Is there a way to encrypt the data file that mysql uses? I have
Is there any way to have something that looks just like a file on
Is there any way to have a code that opens a PDF file in
I have an ASP.NET RegularExpressionValidator that checks file extensions. Is there a quick way
Is there a way to update a modified plist file that's in the bundle
I have a file that's been modified recently. Rather than looking into each revision,
Is there a way to have the file reference work under ipad? The file
Is there any way to have a Windows batch file directly input SQL statements
Is there a way to have an application access a SQL Compact database file

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.