[PATCH] BUILD: script to clean the build files


Jacobraj Benet <JBenet@...>
 

A script has been added to clear off all the build related files and this script would be triggered on dist clean command from Makefile.

This script basically clears all the build files, which makes it easy to merge and also check for any difference between the local files and the files in the repository.

Signed-off-by: Jacobraj Benet <jbenet@...>

----
diff --git a/Makefile b/Makefile
index 24c7555..e2df1e8 100644
--- a/Makefile
+++ b/Makefile
@@ -49,3 +49,6 @@ common-clean:
 install: common-install mama-install
 
 clean: common-clean mama-clean
+
+distclean: clean
+       ./clearBuildFiles.sh

----
clearBuildFiles.sh

cd common/c_cpp
rm -rf autom4te.cache etc
rm -rf config.h config.status etc stamp-h1 aclocal.m4 config.h.in configure doxyconfig-c libtool Makefile.in autom4te.cache config.log Makefile 
cd - ; cd common/c_cpp/src
rm -rf Makefile Makefile.in
cd - ; cd common/c_cpp/src/c
rm -rf Makefile Makefile.in .deps properties.c version.h
cd -;

cd mama/c_cpp
rm -rf autom4te.cache etc
rm -rf config.h config.status etc stamp-h1 aclocal.m4 config.h.in configure doxyconfig-c libtool Makefile.in autom4te.cache config.log Makefile
cd -; cd mama/c_cpp/src
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/c
rm -rf Makefile Makefile.in .deps version.c

cd -; cd mama/c_cpp/src/c/mama
rm -rf version.h

cd -; cd mama/c_cpp/src/examples
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/examples/c
rm -rf Makefile Makefile.in .deps
cd common/c_cpp
rm -rf autom4te.cache etc
rm -rf config.h config.status etc stamp-h1 aclocal.m4 config.h.in configure doxyconfig-c libtool Makefile.in autom4te.cache config.log Makefile 
cd - ; cd common/c_cpp/src
rm -rf Makefile Makefile.in
cd - ; cd common/c_cpp/src/c
rm -rf Makefile Makefile.in .deps properties.c version.h
cd -;

cd mama/c_cpp
rm -rf autom4te.cache etc
rm -rf config.h config.status etc stamp-h1 aclocal.m4 config.h.in configure doxyconfig-c libtool Makefile.in autom4te.cache config.log Makefile
cd -; cd mama/c_cpp/src
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/c
rm -rf Makefile Makefile.in .deps version.c

cd -; cd mama/c_cpp/src/c/mama
rm -rf version.h

cd -; cd mama/c_cpp/src/examples
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/examples/c
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/testtools
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/load/c
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/load
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/performance/c
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/performance
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/capturereplay/c
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/capturereplay
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/regression
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/gunittest
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/gunittest/c
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/c/payload
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/c/payload/avismsg
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/c/bridge
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/c/bridge/avis
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/load/c
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/load
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/performance/c
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/performance
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/capturereplay/c
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/testtools/capturereplay
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/regression
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/gunittest
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/gunittest/c
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/c/payload
rm -rf Makefile Makefile.in .deps
cd -; cd mama/c_cpp/src/c/payload/avismsg
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/c/bridge
rm -rf Makefile Makefile.in .deps

cd -; cd mama/c_cpp/src/c/bridge/avis
rm -rf Makefile Makefile.in .deps

 

Jacobraj Benet

NYSE Technologies

+1 312 442 7956

 




Please consider the environment before printing this email.

Visit our website at http://www.nyse.com
*****************************************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.

Join Openmama-dev@lists.openmama.org to automatically receive all group messages.