Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Restoring all source files with a single command? (Cygwin)
« previous next »
  • Print
Pages: [1]

Author Topic: Restoring all source files with a single command? (Cygwin)  (Read 1820 times)

Offline lee321987

  • Member
  • *
  • Posts: 76
Restoring all source files with a single command? (Cygwin)
« on: May 02, 2008, 06:22:11 PM »
   Is it possible?
   I was sure I only had only one patch applied, but after deleting the files that the patch targets, updating SVN, deleting everything in my build dir, and then a "make veryclean", my build still has "M" in the version (that does mean 'modified' -- right?)
   So I'm thinking maybe I applied a patch a long time ago, but don't remember which one.  Is there a command for Cygwin/SVN that overwrites all patched files with the current official ones?

   Thanks in advance,

Will

P.S. was it redundant to run "make veryclean" after I deleted everything in the build dir?
Logged
What are you waiting for? You're faster than this. Don't think you are... know you are. -- The Matrix

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Restoring all source files with a single command? (Cygwin)
« Reply #1 on: May 02, 2008, 06:25:21 PM »
use
svn revert -R .

and yes, it's redundant to run "make veryclean" after deleting the build folder -- make only operates on the build folder, it doesn't change the sources itself (which is done by patch).
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Restoring all source files with a single command? (Cygwin)
« Reply #2 on: May 02, 2008, 06:26:09 PM »
svn status should tell you what files are modified. svn revert -R * or svn revert -R . should revert everything. I think though that all build compiled yourself show the M, only ones made by the official build system aren't meant to.
Logged

Offline lee321987

  • Member
  • *
  • Posts: 76
Re: Restoring all source files with a single command? (Cygwin)
« Reply #3 on: May 02, 2008, 07:05:04 PM »
   After a revert, 'svn status' reports this:

Code: [Select]
?      sim
?      build
?      tools/codepages.exe
?      tools/convbdf.exe
?      tools/bmp2rb.exe
?      tools/scramble.exe
?      tools/rdf2binary.exe
?      rbutil/sansapatcher/PP5022.mi4
?      rbutil/sansapatcher/sansapatcher.exe
?      rbutil/sansapatcher/firmware.mi4
?      rbutil/sansapatcher/bootimg_c200.c
?      rbutil/sansapatcher/bootimg_e200.c
?      rbutil/sansapatcher/bootimg_c200.h
?      rbutil/sansapatcher/bootimg_e200.h
?      rbutil/sansapatcher/bin2c.exe

   I read somewhere that the question marks mean, "Item is not under version control."  Is it ok to build now, and file (any) bug reports?
Logged
What are you waiting for? You're faster than this. Don't think you are... know you are. -- The Matrix

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Restoring all source files with a single command? (Cygwin)
« Reply #4 on: May 02, 2008, 07:19:22 PM »
This thread will shed some light on the ? files:

http://forums.rockbox.org/index.php?topic=14842.0
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline lee321987

  • Member
  • *
  • Posts: 76
Re: Restoring all source files with a single command? (Cygwin)
« Reply #5 on: May 02, 2008, 08:01:47 PM »
   Thanks Yapper, "svn-clean" hit the spot. 
   No more "M" in my version number.
« Last Edit: May 04, 2008, 03:32:42 AM by lee321987 »
Logged
What are you waiting for? You're faster than this. Don't think you are... know you are. -- The Matrix

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Restoring all source files with a single command? (Cygwin)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.081 seconds with 14 queries.