[rtems-libbsd commit] Add freebsd/machine/elf.h as empty.

Joel Sherrill joel at rtems.org
Fri Mar 30 16:48:04 UTC 2012


  Improve message for empty file.
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Module:    rtems-libbsd
Branch:    master
Commit:    e3f2b511a6c07fedb5968071922c28129ae5569f
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e3f2b511a6c07fedb5968071922c28129ae5569f

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Mar 30 11:49:26 2012 -0500

Add freebsd/machine/elf.h as empty. Improve message for empty file.

---

 freebsd-to-rtems.py   |    4 ++--
 freebsd/machine/elf.h |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 966f04d..bf66b09 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -197,7 +197,7 @@ def installEmptyFile(src):
 	out = open(tempFile, 'w')
 	out.write('/* EMPTY */\n')
 	out.close()
-	processIfDifferent(tempFile, dst, "empty file ", "" )
+	processIfDifferent(tempFile, dst, "empty file ", "empty file" )
 
 # fix include paths inside a C or .h file
 def fixIncludes(data):
@@ -423,7 +423,7 @@ class ModuleManager:
 		out.write(data)
 		out.close()
 		makefile = RTEMS_DIR + '/Makefile'
-		processIfDifferent(tempFile, makefile, "Makefile ", "")
+		processIfDifferent(tempFile, makefile, "Makefile ", "Makefile")
 
 # Module - logical group of related files we can perform actions on
 class Module:
diff --git a/freebsd/machine/elf.h b/freebsd/machine/elf.h
new file mode 100644
index 0000000..936ffd8
--- /dev/null
+++ b/freebsd/machine/elf.h
@@ -0,0 +1 @@
+/* EMPTY */




More information about the vc mailing list