Use README to import

This commit is contained in:
christos 2024-03-03 17:41:48 +00:00
parent 345cf9fb81
commit 7301e11f26
3 changed files with 6 additions and 59 deletions

6
external/bsd/elftoolchain/README vendored Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
$ svn checkout https://svn.code.sf.net/p/elftoolchain/code/trunk elftoolchain-code
$ mkdir dist.new
$ dist/tools/netbsd-base-system-import.sh -m common -m libdwarf -m libelf -s elftoolchain-code -d dist.new
$ cd dist.new
cvs -d cvs.netbsd.org import src/external/bsd/elftoolchain FreeBSD rXXXX

View File

@ -1,36 +0,0 @@
#!/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"

View File

@ -1,23 +0,0 @@
#!/bin/sh
# $NetBSD: prepare-import.sh,v 1.1 2014/03/09 16:58:03 christos Exp $
# Copy the FreeBSD src/lib/elftwoolchain directory contents to dist. Run
# this script and you're done. This does not add NetBSD RCSID's just cleans
# existing ones to avoid conflicts in the future
#
# lib/ is built as SUBDIR from lib/Makefile.
#
# Use the following template to import
# cvs import src/external/bsd/elftoolchain/dist FreeBSD FreeBSD-X-Y-Z
#
# don't forget to bump the lib/shlib_version if necessary
#
set -e
if [ -z "$1" ]
then
echo "$0: <distdir>" 1>&2
exit 1
fi
cleantags $1