Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-09

Makefile deletion script

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Terry Kemp

Hi

Because I cross-compile svn for arm a lot I end up with Makefiles with revision numbers and littered with >>>>>>>>>>>>Mine through them from fpcmake -r -Tall etc.

It takes time to manually delete each offending one and restore from svn so I have a script (attached)

I have made it so that you can pass any file name as argument and it will recursively delete it without touching the .svn folders There is also a test (display) version if your scared of it ;)

./disp_files.sh Makefile - shows what it will delete, ./rm_files Makefile - will blitz them,
svn up gets the correct ones back again

Could this be useful in utils or tools?

Terry

Reply by email

Jonas Maebe
to Terry Kemp
Terry Kemp wrote 7 lines
Because I cross-compile svn for arm a lot I end up with Makefiles with revision numbers and littered with >>>>>>>>>>>>Mine through them from fpcmake -r -Tall etc. It takes time to manually delete each offending one and restore from svn so I have a script (attached)

You can use "svn revert -R ." to restore all files in the current directory and below to their checked out svn version (without having to delete them first). This even does not require network access.

Jonas

Reply by email

Terry Kemp
to Jonas Maebe
Jonas Maebe wrote 6 lines
You can use "svn revert -R ." to restore all files in the current directory and below to their checked out svn version (without having to delete them first). This even does not require network access. Jonas

Thats cool.
Do you know how long it took me to work out the bash script ;(

One thing tho - "svn revert -R ." will nail any of my modified files that I want to keep different to trunk. Can you tell it to just revert Makefile?

Terry

Reply by email

Joao Morais
to Terry Kemp
Terry Kemp wrote 13 lines
On Tue, 2008-09-30 at 22:54 +0200, Jonas Maebe wrote: > You can use "svn revert -R ." to restore all files in the current > directory and below to their checked out svn version (without having > to delete them first). This even does not require network access. > Thats cool. Do you know how long it took me to work out the bash script ;( One thing tho - "svn revert -R ." will nail any of my modified files that I want to keep different to trunk. Can you tell it to just revert Makefile?
$ svn revert Makefile
or
$ svn revert -R Makefile

Joao Morais

Reply by email