xref: /minix3/external/bsd/elftoolchain/prepare-import.sh (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc#!/bin/sh
2*0a6a1f1dSLionel Sambuc# $NetBSD: prepare-import.sh,v 1.1 2014/03/09 16:58:03 christos Exp $
3*0a6a1f1dSLionel Sambuc
4*0a6a1f1dSLionel Sambuc# Copy the FreeBSD src/lib/elftwoolchain directory contents to dist.  Run
5*0a6a1f1dSLionel Sambuc# this script and you're done. This does not add NetBSD RCSID's just cleans
6*0a6a1f1dSLionel Sambuc# existing ones to avoid conflicts in the future
7*0a6a1f1dSLionel Sambuc#
8*0a6a1f1dSLionel Sambuc# lib/ is built as SUBDIR from lib/Makefile.
9*0a6a1f1dSLionel Sambuc#
10*0a6a1f1dSLionel Sambuc# Use the following template to import
11*0a6a1f1dSLionel Sambuc#  cvs import src/external/bsd/elftoolchain/dist FreeBSD FreeBSD-X-Y-Z
12*0a6a1f1dSLionel Sambuc#
13*0a6a1f1dSLionel Sambuc# don't forget to bump the lib/shlib_version if necessary
14*0a6a1f1dSLionel Sambuc#
15*0a6a1f1dSLionel Sambuc
16*0a6a1f1dSLionel Sambucset -e
17*0a6a1f1dSLionel Sambuc
18*0a6a1f1dSLionel Sambucif [ -z "$1" ]
19*0a6a1f1dSLionel Sambucthen
20*0a6a1f1dSLionel Sambuc	echo "$0: <distdir>" 1>&2
21*0a6a1f1dSLionel Sambuc	exit 1
22*0a6a1f1dSLionel Sambucfi
23*0a6a1f1dSLionel Sambuccleantags $1
24