google / szl

A compiler and runtime for the Sawzall language
Other
69 stars 16 forks source link

Generated files kept under version control #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After modifying ``configure.ac`` and rerunning ``autoreconf -f``, ``svn`` 
reports the following:

    $ svn status | grep ^M
    M       configure
    M       Makefile.in
    M       src/Makefile.in
    M       configure.ac
    M       aclocal.m4

All files above are generated from ``configure.ac``, so I think there's no need 
to keep them in Subversion.

Original issue reported on code.google.com by superdup...@gmail.com on 5 Nov 2010 at 6:28

GoogleCodeExporter commented 9 years ago
While I agree that it's probably cleaner to remove all generated files from 
version control, if you want to avoid polluting your working svn copy with 
modifications related to a particular build, try using the handy "lndir" tool 
(in xutils-dev on debian/ubuntu):

mkdir build && cd build && lndir ../svn-working-dir

That will fill the build directory with symlinks recursively mirroring your 
working svn dir.  Generated files will overwrite the symlinks without affecting 
their targets.  In addition, you can always test local modifications in your 
build directory by copying actual files over the symlinks and modifying them.

Original comment by dbh@google.com on 10 Nov 2010 at 3:16

GoogleCodeExporter commented 9 years ago

Original comment by dbh@google.com on 17 Nov 2010 at 5:17