Makefiles and version control directories

I’m using subversion for version control and I have lot’s of .svn (just like
CVS) directories all-around my BSP tree. The make system gives me hard time
because the “make install” copies the the .svn directories (with their
contents) as well.

Is there a special variable somewhere in the makefiles which I could use to
say that .svn directories should be ignored? I’m using QNX 6.3 on Windows
host.

cheers,
Martin

In article <cipnm9$j55$1@inn.qnx.com>,
Martin Nylund <mnylund@emtrion.de> wrote:

I’m using subversion for version control and I have lot’s of .svn (just like
CVS) directories all-around my BSP tree. The make system gives me hard time
because the “make install” copies the the .svn directories (with their
contents) as well.

Is there a special variable somewhere in the makefiles which I could use to
say that .svn directories should be ignored? I’m using QNX 6.3 on Windows
host.

No variable, sorry. The flist-win32 (flist-unix on other platforms) shell
script needs to be updated. You can find it in “${QNX_TARGET}/usr/include/mk”.
The find just needs to have “.svn” be treated the same as the “CVS” and
“RCS” directories.


Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Thanks brian,
now it seems to work :slight_smile: Here’s what I did in case someone else has the same
problem:

diff mk/flist-nt.bat mk.old/flist-nt.bat
2c2
< %QNX_HOST%\usr\bin\find %* -type f | grep -v “Makefile” | egrep -v “^.” |
grep -v “CVS” | grep -v “RCS” | grep -v “.svn”

%QNX_HOST%\usr\bin\find %* -type f | grep -v “Makefile” | egrep -v “^.” |
grep -v “CVS” | grep -v “RCS”

diff mk/flist-unix mk.old/flist-unix
2,3c2,3
< \find $* ( ( -name CVS -o -name RCS -o -name .svn ) -prune -o -type f
)
< ! -name CVS ! -name RCS ! -name .svn ! -name Makefile ! -name .#*

\find $* ( ( -name CVS -o -name RCS ) -prune -o -type f )
! -name CVS ! -name RCS ! -name Makefile ! -name .#*
diff mk/flist-win32 mk.old/flist-win32

2,3c2,3
< $QNX_HOST/usr/bin/find $* ( ( -name CVS -o -name RCS -o -name .svn
) -prune -o -type f )
< ! -name CVS ! -name RCS ! -name .svn ! -name Makefile ! -name .#*

$QNX_HOST/usr/bin/find $* ( ( -name CVS -o -name RCS ) -prune -o -type
f )
! -name CVS ! -name RCS ! -name Makefile ! -name .#*

  • Martin

“Brian Stecher” <bstecher@qnx.com> schrieb im Newsbeitrag
news:cis5oc$fu3$1@inn.qnx.com

In article <cipnm9$j55$> 1@inn.qnx.com> >,
Martin Nylund <> mnylund@emtrion.de> > wrote:
I’m using subversion for version control and I have lot’s of .svn (just
like
CVS) directories all-around my BSP tree. The make system gives me hard
time
because the “make install” copies the the .svn directories (with their
contents) as well.

Is there a special variable somewhere in the makefiles which I could use
to
say that .svn directories should be ignored? I’m using QNX 6.3 on Windows
host.

No variable, sorry. The flist-win32 (flist-unix on other platforms) shell
script needs to be updated. You can find it in
“${QNX_TARGET}/usr/include/mk”.
The find just needs to have “.svn” be treated the same as the “CVS” and
“RCS” directories.


Brian Stecher (> bstecher@qnx.com> ) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M
1W8

Martin Nylund wrote:

Thanks brian,
now it seems to work > :slight_smile: > Here’s what I did in case someone else has the same
problem:

diff mk/flist-nt.bat mk.old/flist-nt.bat

You should probably use diff -c or diff -u, it’s nicer on the eyes. :wink:


Chris Herborth (cherborth@qnx.com)
Never send a monster to do the work of an evil scientist.

I guess you’re right. Well, here’s the same with the -c option

diff -c mk/flist-nt.bat mk.old/flist-nt.bat
*** mk/flist-nt.bat Thu Sep 23 09:50:07 2004
— mk.old/flist-nt.bat Thu May 13 22:36:00 2004


*** 1,2 ****
@echo off
! %QNX_HOST%\usr\bin\find %* -type f | grep -v “Makefile” | egrep -v “^.” |
grep -v “CVS” | grep -v “RCS” | grep -v “.svn”
— 1,2 ----
@echo off
! %QNX_HOST%\usr\bin\find %* -type f | grep -v “Makefile” | egrep -v “^.” |
grep -v “CVS” | grep -v “RCS”
diff -c mk/flist-unix mk.old/flist-unix
*** mk/flist-unix Thu Sep 23 10:37:21 2004
— mk.old/flist-unix Thu May 13 22:36:00 2004


*** 1,3 ****
#!/bin/sh
! \find $* ( ( -name CVS -o -name RCS -o -name .svn ) -prune -o -type f
)
! ! -name CVS ! -name RCS ! -name .svn ! -name Makefile ! -name .#*
— 1,3 ----
#!/bin/sh
! \find $* ( ( -name CVS -o -name RCS ) -prune -o -type f )
! ! -name CVS ! -name RCS ! -name Makefile ! -name .#*
diff -c mk/flist-win32 mk.old/flist-win32
*** mk/flist-win32 Thu Sep 23 10:35:54 2004
— mk.old/flist-win32 Thu May 13 22:36:00 2004


*** 1,3 ****
#!/bin/sh
! $QNX_HOST/usr/bin/find $* ( ( -name CVS -o -name RCS -o -name .svn
) -prune -o -type f )
! ! -name CVS ! -name RCS ! -name .svn ! -name Makefile ! -name .#*
— 1,3 ----
#!/bin/sh
! $QNX_HOST/usr/bin/find $* ( ( -name CVS -o -name RCS ) -prune -o -type
f )
! ! -name CVS ! -name RCS ! -name Makefile ! -name .#*



“Chris Herborth” <cherborth@qnx.com> schrieb im Newsbeitrag
news:ciupjs$h16$1@inn.qnx.com

Martin Nylund wrote:
Thanks brian,
now it seems to work > :slight_smile: > Here’s what I did in case someone else has the
same
problem:

diff mk/flist-nt.bat mk.old/flist-nt.bat

You should probably use diff -c or diff -u, it’s nicer on the eyes. > :wink:


Chris Herborth (> cherborth@qnx.com> )
Never send a monster to do the work of an evil scientist.