summaryrefslogtreecommitdiff
path: root/Tools/scripts/release/setup.sh
blob: 017abd8e24072779f034790cc4ec1d106e9e1830 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# $FreeBSD$

dir=$@
if [ -z $dir ]; then
	echo "Usage: $0 <path to dir with ports and packages to split>"
	exit 1
fi
if [ ! -d $dir ]; then
	echo "Directory not found.  Aborting."
	exit 1
fi

tar xzvf $dir/ports.tar.gz
cd ports
rm -f distfiles packages
mkdir distfiles packages
(echo "copying packages ..." && cd packages && cp -R $dir/packages/ .)
#(echo "copying distfiles ..." && cd distfiles && cp -R $dir/distfiles/ .)