Skip to content

Commit

Permalink
Merge pull request DOCGroup#2133 from nickwilliams-zaxiom/add_gitignores
Browse files Browse the repository at this point in the history
Add missing and update .gitignore files to prevent untracked files Git status
  • Loading branch information
mitza-oci authored Oct 6, 2023
2 parents 1affc2b + 7c292a3 commit 51e1e2c
Show file tree
Hide file tree
Showing 141 changed files with 763 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

.depend.*
GNUmakefile*
local.mwc
*.ior
.obj/
*.iobj
Expand Down
51 changes: 51 additions & 0 deletions ACE/bin/update_gitignore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/env bash

cmd="$1"
if [[ "$cmd" == "help" ]] || [[ "$cmd" != "run" && "$cmd" != "dry-run" ]]
then
if [[ "$cmd" != "help" ]]
then
echo "Error: Unrecognized command '$0 $1'"
echo ""
fi

echo "Usage:"
echo " update_gitignore.sh run"
echo " update_gitignore.sh dry-run"
echo ""
echo "This command finds all untracked and un-git-add-ed files in the repository and adds each file name to "
echo "a '.gitignore' file in the same directory. If a '.gitignore' file does not exist, one will be created. "
echo "Otherwise, the existing '.gitignore' file will be appended to. The 'dry-run' command enables you to "
echo "see a list of all detected file names that will be added to '.gitignore' files without making any "
echo "changes."
echo ""
echo "If the 'run' command does its job properly, running 'dry-run' immediately after should display no "
echo "planned actions."

if [[ "$cmd" == "help" ]]
then
exit 0
fi

exit 1
fi

export IFS=$'\n';

for line in $(git status --short --untracked-files)
do
if [[ $line == '??'* ]]
then
file="${line:3}"
d="$(dirname "${file}")"
f="$(basename "${file}")"

if [[ "$cmd" == "run" ]]
then
echo "Ignoring ${f} in ${d}/.gitignore"
echo "${f}" >> "${d}/.gitignore"
else
echo "Will ignore ${f} in ${d}/.gitignore"
fi
fi
done
2 changes: 2 additions & 0 deletions ACE/protocols/examples/INet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ftp_simple_wget
http_simple_wget
2 changes: 2 additions & 0 deletions ACE/protocols/tests/HTBP/Send_Recv_Tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/SendRecv_Test
client
server
1 change: 1 addition & 0 deletions ACE/protocols/tests/INet/MT_Get/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mt_get
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/BiDir_CORBALOC/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/TimeServer
TimeModuleC.cpp
TimeModuleC.h
TimeModuleC.inl
TimeModuleS.cpp
TimeModuleS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Bug_1395_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/client
/server
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
1 change: 1 addition & 0 deletions TAO/orbsvcs/tests/Bug_2112_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
client
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Bug_2247_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/Manager
/server
testC.cpp
testC.h
testC.inl
testS.cpp
testS.h
10 changes: 10 additions & 0 deletions TAO/orbsvcs/tests/Bug_2248_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
/client
/server
testC.cpp
testC.h
testC.inl
testS.cpp
testS.h
testsC.cpp
testsC.h
testsC.inl
testsS.cpp
testsS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Bug_2285_Regression/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
/client2
/server
/server2
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Bug_2287_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/client
/server
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Bug_2316_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/client
/server
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Bug_2377_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/uipmc_test
HelloC.cpp
HelloC.h
HelloC.inl
HelloS.cpp
HelloS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Bug_2615_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/client
/server
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Bug_2709_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/client
/server
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
8 changes: 8 additions & 0 deletions TAO/orbsvcs/tests/Bug_2800_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
nsmain
server
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/Bug_2925_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HelloC.cpp
HelloC.h
HelloC.inl
HelloS.cpp
HelloS.h
client
server
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/Bug_3215_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
server
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/Bug_3216_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
server
8 changes: 8 additions & 0 deletions TAO/orbsvcs/tests/Bug_3387_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
MessengerC.cpp
MessengerC.h
MessengerC.inl
MessengerClient
MessengerConsumer
MessengerS.cpp
MessengerS.h
MessengerServer
1 change: 1 addition & 0 deletions TAO/orbsvcs/tests/Bug_3418_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Test
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/Bug_3444_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
server
1 change: 1 addition & 0 deletions TAO/orbsvcs/tests/Bug_3486_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
server
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/Bug_3598b_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
server
8 changes: 8 additions & 0 deletions TAO/orbsvcs/tests/Bug_3673_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
nsmain
server
6 changes: 6 additions & 0 deletions TAO/orbsvcs/tests/Bug_3891_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
server
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/Bug_4080_Regression/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
bug4080_client
bug4080_server
testC.cpp
testC.h
testC.inl
testS.cpp
testS.h
6 changes: 6 additions & 0 deletions TAO/orbsvcs/tests/COIOP_Naming_Test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
COIOP_Naming_Test
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
6 changes: 6 additions & 0 deletions TAO/orbsvcs/tests/CosEvent/Basic/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Disconnect
MT_Disconnect
Pull_Push_Event
Push_Event
Random
Shutdown
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/EC_Custom_Marshal/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/ECM_Consumer
/ECM_Supplier
dataC.cpp
dataC.h
dataC.inl
dataS.cpp
dataS.h
15 changes: 15 additions & 0 deletions TAO/orbsvcs/tests/Event/Basic/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Atomic_Reconnect
BCast
Bitmask
Complex
Control
Disconnect
Gateway
MT_Disconnect
Negation
Observer
Random
Reconnect
Shutdown
Timeout
Wildcard
2 changes: 2 additions & 0 deletions TAO/orbsvcs/tests/Event/Mcast/AddrServer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
client
server
3 changes: 3 additions & 0 deletions TAO/orbsvcs/tests/Event/Mcast/Complex/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
consumer
gateway-ec
supplier
3 changes: 3 additions & 0 deletions TAO/orbsvcs/tests/Event/Mcast/Simple/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
consumer
gateway-ec
supplier
2 changes: 2 additions & 0 deletions TAO/orbsvcs/tests/Event/Mcast/Two_Way/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
application
gateway-ec
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Event/Performance/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Connect
Inversion
Latency
Latency_Server
Throughput
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/Event/UDP/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/receiver
/sender
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/FT_App/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
/ft_registry
/ft_replica
/replmgr_controller
FT_TestReplicaC.cpp
FT_TestReplicaC.h
FT_TestReplicaC.inl
FT_TestReplicaS.cpp
FT_TestReplicaS.h
12 changes: 12 additions & 0 deletions TAO/orbsvcs/tests/FT_Naming/FaultTolerant/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
server
test_objectC.cpp
test_objectC.h
test_objectC.inl
test_objectS.cpp
test_objectS.h
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/FT_Naming/Federation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
server
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/FT_Naming/Load_Balancing/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
server
6 changes: 6 additions & 0 deletions TAO/orbsvcs/tests/FT_Naming/Replication/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
client
test_objectC.cpp
test_objectC.h
test_objectC.inl
test_objectS.cpp
test_objectS.h
7 changes: 7 additions & 0 deletions TAO/orbsvcs/tests/FT_Naming/stress_storable/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TestC.cpp
TestC.h
TestC.inl
TestS.cpp
TestS.h
client
server
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/client
/server
testC.cpp
testC.h
testC.inl
testS.cpp
testS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/FaultTolerance/IOGR/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/Manager
/server
testC.cpp
testC.h
testC.inl
testS.cpp
testS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/HTIOP/AMI/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/client
/server
/simple_client
ami_testC.cpp
ami_testC.h
ami_testC.inl
ami_testS.cpp
ami_testS.h
5 changes: 5 additions & 0 deletions TAO/orbsvcs/tests/HTIOP/BiDirectional/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/client
/server
testC.cpp
testC.h
testC.inl
testS.cpp
testS.h
Loading

0 comments on commit 51e1e2c

Please sign in to comment.