Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

new console project

(1/2) > >>

killerbot:
Was run CB from within CB (so the devel dir version of it was running), and I created a new console project. Suddenli I noticed I had an others section in my source tree, inspecting the cbp file I noticed these :

--- Quote ---      <Unit filename=".svn/entries" />
      <Unit filename=".svn/format" />
      <Unit filename=".svn/text-base/Makefile.am.svn-base" />
      <Unit filename=".svn/text-base/main.cpp.svn-base" />
      <Unit filename="Makefile.am" />
      <Unit filename="main.cpp" />

--- End quote ---

Seems a little bug ?

Over to the wizard gurus ;-)

raph:
I noticed this some time ago and fixed it, but hadn't time to submit a patch.
The problem is, that the .svn dir is copied into the template/wizard/wizardtype subdirs.

The fix is simple: just add \.svn\ to excludes.txt in update.bat

--- Code: ---Index: update.bat
===================================================================
--- update.bat (revision 4338)
+++ update.bat (working copy)
@@ -77,6 +77,7 @@
 copy /y plugins\codecompletion\resources\images\*.png %RESDIR%\images\codecompletion > nul
 copy /y plugins\codecompletion\resources\images\*.png output\share\codeblocks\images\codecompletion > nul
 echo Makefile.am > excludes.txt
+echo \.svn\ >> excludes.txt
 xcopy /y /s plugins\scriptedwizard\resources\* %RESDIR%\templates\wizard /EXCLUDE:excludes.txt >nul
 xcopy /y /s plugins\scriptedwizard\resources\* output\share\codeblocks\templates\wizard /EXCLUDE:excludes.txt >nul
 xcopy /y templates\common\* output\share\codeblocks\templates /EXCLUDE:excludes.txt > nul

--- End code ---

Best Regards
raph

killerbot:
ok thanks, I will adjust update.bat tomorrow in svn.
However on linux we use the cp command in update.sh, and that doesn't seem to provide an exclude mechanism like xcopy.
Does anyone know of such an xcopy replacement in linux, which is standard and present in (all) linux-es ???

Biplab:
I didn't face this problem. It works fine in my system. :)

Is this problem occurring on Windows?? I believe there is no need to change the batch file.

killerbot:
It occurs for sure if you build CB with CB on linux.
On windows, it does not occur for me, because the update.bat already put the makefile.am in excludes, however the .svn could happen I guess. For most people it does not occur, since that .svn is a hidden dir, but maybe it can, to be correct we ned to adjust the update.bat as suggested above, and find a solution for linux.

Navigation

[0] Message Index

[#] Next page

Go to full version