xref: /freebsd/contrib/libucl/FREEBSD-upgrade (revision 2326db40a1d2dd98631d70aae200ca52575139fb)
1# FreeBSD libucl import instruction
2#
3# At least the following ports are required when importing libucl:
4# - devel/autoconf
5# - devel/automake
6# - devel/git
7# - devel/gmake
8# - devel/libtool
9#
10# 1. Vendor import
11#
12# $ git clone https://github.com/vstakhov/libucl.git /tmp/libucl
13# $ cd /tmp/libucl
14# $ git checkout <REF_BRANCH_TO_BE_IMPORTED>
15# $ cd /usr/src
16# $ git checkout vendor/libucl
17# $ rsync -va --delete --exclude=.git /tmp/libucl/ /usr/src/contrib/libucl/
18# $ git add .
19# $ git commit -m "vendor import libucl <REF_BRANCH_TO_BE_IMPORTED>"
20# $ git tag -a vendor/libucl/<REF_BRANCH_TO_BE_IMPORTED> -m "vendor import libucl <REF_BRANCH_TO_BE_IMPORTED>"
21# $ git push --follow-tags freebsd vendor/libucl/<REF_BRANCH_TO_BE_IMPORTED>
22#
23# 2. Test
24#
25# $ cd /usr/src
26# $ git checkout vendor/libucl/<REF_BRANCH_TO_BE_IMPORTED>
27# $ ./autogen.sh
28# $ ./configure
29# $ gmake
30# $ gmake check
31# $ gmake clean
32#
33# 3. Merge vendor tree
34#
35# $ git subtree merge -P contrib/libucl vendor/libucl/<REF_BRANCH_TO_BE_IMPORTED>
36# $ sh -c 'for F in `cat FREEBSD-Xlist | grep -v FreeBSD`; do rm -rf ./$F ; done'
37#
38# Recheck if there were any new files were added which are not necessary in the
39# contrib tree. If so, remove them and also add them to the FREEBSD-Xlist file.
40