freebsd-ports/Tools/scripts/release/setup.sh

20 lines
434 B
Bash
Raw Normal View History

#!/bin/sh
# $FreeBSD$
dir=$@
2002-05-16 05:24:44 +02:00
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/ .)