Module Name: src
Committed By: darran
Date: Wed Dec 23 00:06:54 UTC 2009
Added Files:
src/external/bsd/libdwarf: prepare-import.sh
Log Message:
Add a script to prepare libdwarf for import.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/libdwarf/prepare-import.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: src/external/bsd/libdwarf/prepare-import.sh
diff -u /dev/null src/external/bsd/libdwarf/prepare-import.sh:1.1
--- /dev/null Wed Dec 23 00:06:54 2009
+++ src/external/bsd/libdwarf/prepare-import.sh Wed Dec 23 00:06:53 2009
@@ -0,0 +1,42 @@
+#!/bin/sh
+# $NetBSD: prepare-import.sh,v 1.1 2009/12/23 00:06:53 darran Exp $
+
+# Copy the FreeBSD src/lib/libdwarf directory contents to dist. Run
+# this script and you're done.
+#
+# lib/ is built as SUBDIR from external/lib/Makefile.
+#
+# Use the following template to import
+# cvs import src/external/bsd/libdwarf/dist FreeBSD FreeBSD-X-Y-Z
+#
+# don't forget to bump the lib/shlib_version if necessary
+#
+
+set -e
+
+echo "Adding RCS tags .."
+for f in $(grep -RL '\$NetBSD.*\$' dist | grep -v CVS); do
+ case $f in
+ *.[ch] | *.m4)
+ cat - > ${f}_tmp <<- EOF
+ /* \$NetBSD\$ */
+
+ EOF
+ sed -e 's,^__FBSDID.*,\/\* & \*\/\
+__RCSID\(\"\$NetBSD\$\"\)\;,g' ${f} >> ${f}_tmp
+ mv ${f}_tmp ${f}
+ ;;
+ *.[0-9])
+ cat - ${f} > ${f}_tmp <<- EOF
+ .\" \$NetBSD\$
+ .\"
+ EOF
+ mv ${f}_tmp ${f}
+ ;;
+ *)
+ echo "No RCS tag added to ${f}"
+ ;;
+ esac
+done
+
+echo "prepare-import done"