Discussion:
[Larceny-users] Using git with larceny's repository
Lynn Winebarger
2009-04-17 20:24:22 UTC
Permalink
Hello,

I've started using git to track the larceny repository. Since
larceny's build process is really geared to happen in place, it seems
like I'm either going to have to a dance with copying the directory
after a build and then clearing the build by checking out the last
committed version, or I need to set up the "exclude" file and
.gitignore files to ignore autogenerated and object files.

It seems like the easiest way to do this is to just exclude
(a) *.[ac]h and then negate the specific file instances that aren't
autogenerated
(b) *.l[ao]p
(c) *.o, *.fasl, *.slfasl
(d) Makefile
(d) a bunch of specific exclusions that we know are autogenerated

Has anyone already worked out that file (and would be willing to share it)?
I also noticed that the results of the sassy tests are in the
repository while poking around.

Thanks,
Lynn
Lynn Winebarger
2009-04-20 02:27:54 UTC
Permalink
I've started using git to track the larceny repository.  Since
larceny's build process is really geared to happen in place, it seems
like I'm either going to have to a dance with copying the directory
after a build and then clearing the build by checking out the last
committed version, or I need to set up the "exclude" file and
.gitignore files to ignore autogenerated and object files.
To answer my own question, "git clean" is an excellent reason to use
git with larceny.

Assuming your repository reflects trunk/larceny_src In the
.git/info/exclude file I put:
.[oa]
*~
\#*\#
Makefile
*.rej
*.orig
*.l[ao]p
*.fasl
*.slfasl
--------------------------------
For the rest, build the executable in the source tree as per the
instructions, then
$ git clean -n | sed -e 's/Would remove //' >.gitignore
$ git commit -m "Added .gitignore for autogenerated files"
$ git clean -x -f
and now you have a pristine tree and autogenerated files won't be
added by "git add ."

Lynn
Lynn Winebarger
2009-04-20 15:42:28 UTC
Permalink
Post by Lynn Winebarger
For the rest, build the executable in the source tree as per the
instructions, then
$ git clean -n | sed -e 's/Would remove //' >.gitignore
$ git add .gitignore
Post by Lynn Winebarger
$ git commit -m "Added .gitignore for autogenerated files"
$ git clean -x -f
and now you have a pristine tree and autogenerated files won't be
added by "git add ."
Lynn

Loading...