
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
37 lines
578 B
Bash
Executable File
37 lines
578 B
Bash
Executable File
#!/bin/sh
|
|
# $NetBSD: addrcsid,v 1.1 2014/03/09 16:58:03 christos Exp $
|
|
|
|
# This is meant to be run after import to add rcsids to new files.
|
|
|
|
set -e
|
|
|
|
echo "Adding RCS tags .."
|
|
for f in $(grep -RL '\$NetBSD.*\$' $1 | grep -v CVS); do
|
|
case $f in
|
|
*.[ch] | *.m4)
|
|
sed -e '/^\/\*-/ {
|
|
i\
|
|
/* \$NetBSD\$ */\
|
|
|
|
|
|
}' -e '/^ELFTC_VCSID/ {
|
|
i\
|
|
__RCSID("\$NetBSD\$");
|
|
|
|
}' < ${f} > tmp$$ && mv 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"
|