DOCGroup / ACE_TAO

ACE and TAO
https://www.dre.vanderbilt.edu/~schmidt/TAO.html
698 stars 374 forks source link

Add missing and update .gitignore files to prevent untracked files Git status #2133

Closed nickwilliams-zaxiom closed 11 months ago

nickwilliams-zaxiom commented 12 months ago

When I commented orbsvcs/tests in the exclude block and then ran MWC and Make, git status revealed a host of new untracked files due to MWC and Make creating new files throughout this directory. The best solution I could come up with to keep these files out of Git was to add a bunch of new .gitignore files and update several existing .gitignore files. This will prevent this problem going forward for other developers. These are the only changes in this pull request.

If the context helps, this is the Bash command that I used to generate these changes automatically after MWC and Make:

$ (export IFS=$'\n'; for line in $(git status --short --untracked-files); \
    do if [[ $line == '??'* ]]; \
    then file="${line:3}"; d="$(dirname "${file}")"; f="$(basename "${file}")"; \
    echo "${f}" >> "${d}/.gitignore"; fi; done)
mitza-oci commented 11 months ago

I suggest adding a cross-platform script to the repo to maintain these files going forward. See https://github.com/OpenDDS/OpenDDS/blob/master/tools/scripts/update_gitignore.pl for an example

nickwilliams-zaxiom commented 11 months ago

I suggest adding a cross-platform script to the repo to maintain these files going forward. See https://github.com/OpenDDS/OpenDDS/blob/master/tools/scripts/update_gitignore.pl for an example

Happy to do that, but do you have a suggestion for where in the directory structure I should place this?

mitza-oci commented 11 months ago

I suggest adding a cross-platform script to the repo to maintain these files going forward. See https://github.com/OpenDDS/OpenDDS/blob/master/tools/scripts/update_gitignore.pl for an example

Happy to do that, but do you have a suggestion for where in the directory structure I should place this?

It could go in ACE/bin/ but it doesn't have to. Any suggestions @jwillemsen @iguessthislldo or others?

nickwilliams-zaxiom commented 11 months ago

I suggest adding a cross-platform script to the repo to maintain these files going forward. See https://github.com/OpenDDS/OpenDDS/blob/master/tools/scripts/update_gitignore.pl for an example

Happy to do that, but do you have a suggestion for where in the directory structure I should place this?

It could go in ACE/bin/ but it doesn't have to. Any suggestions @jwillemsen @iguessthislldo or others?

I went with ACE/bin/, committed, and pushed.