<commit_before>#!/bin/sh
# Copyright 2007-2009 <NAME>
# All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted providing that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

# $Id$

for i in $(set | grep = | awk -F= '{ print $1 }') ; do
    unset ${i}
done

WRKDIRPREFIX=/usr/obj
PACKAGES=/packages
LOCALBASE=/usr/local
X11BASE=/usr/local
OSVERSION=`awk '/^#define __FreeBSD_version/ {print $3}' < /usr/src/sys/sys/param.h`
OSREL=`awk 'BEGIN {FS="\""}; /^REVISION/ {print $2}' < /usr/src/sys/conf/newvers.sh`
BRANCH=`awk 'BEGIN {FS="\""}; /^BRANCH/ {print $2}' < /usr/src/sys/conf/newvers.sh`
ARCH=`uname -p`
UNAME_n=tinderbox.host
UNAME_r=${OSREL}-${BRANCH}
UNAME_s=FreeBSD
UNAME_v="FreeBSD ${OSREL}-${BRANCH} #0: `date`    <EMAIL>:/usr/src/sys/magic/kernel/path"
BATCH=1
PACKAGE_BUILDING=1
USA_RESIDENT=YES
PORTOBJFORMAT=elf
HAVE_MOTIF=1
FTP_PASSIVE_MODE=yes
FTP_TIMEOUT=900
HTTP_TIMEOUT=900

for i in $(set | grep = | awk -F= '{ print $1 }') ; do
    export ${i}
done

mkdir ${PACKAGES}

for port in $(cat /portlist | cut -d : -f 3  | sort | uniq)
do
	cd /usr/ports/${port}/
	make -DFORCE_PKG_REGISTER -DNO_IGNORE -DBATCH package-recursive
done<commit_msg>* Revert the change that removed environment variables. It causes more problems then it solves.<commit_after>#!/bin/sh
# Copyright 2007-2009 <NAME>
# All rights reserved
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted providing that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

# $Id$

WRKDIRPREFIX=/usr/obj
PACKAGES=/packages
LOCALBASE=/usr/local
X11BASE=/usr/local
OSVERSION=`awk '/^#define __FreeBSD_version/ {print $3}' < /usr/src/sys/sys/param.h`
OSREL=`awk 'BEGIN {FS="\""}; /^REVISION/ {print $2}' < /usr/src/sys/conf/newvers.sh`
BRANCH=`awk 'BEGIN {FS="\""}; /^BRANCH/ {print $2}' < /usr/src/sys/conf/newvers.sh`
ARCH=`uname -p`
UNAME_n=tinderbox.host
UNAME_r=${OSREL}-${BRANCH}
UNAME_s=FreeBSD
UNAME_v="FreeBSD ${OSREL}-${BRANCH} #0: `date`    root@tinderbox.host:/usr/src/sys/magic/kernel/path"
BATCH=1
NO_IGNORE=1
FORCE_PKG_REGISTER=1
PACKAGE_BUILDING=1
USA_RESIDENT=YES
PORTOBJFORMAT=elf
HAVE_MOTIF=1
FTP_PASSIVE_MODE=yes
FTP_TIMEOUT=900
HTTP_TIMEOUT=900

for i in $(set | grep = | awk -F= '{ print $1 }')
do
    export ${i}
done

mkdir ${PACKAGES}

for port in $(cat /portlist | cut -d : -f 3  | sort | uniq)
do
	cd /usr/ports/${port}/
	make package-recursive
done
{'fraction_non_alphanumeric': 0.10956521739130434, 'fraction_numerical': 0.012391304347826086, 'mean_word_length': 4.624694376528117, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '889268', 'n_tokens_mistral': 1605, 'n_tokens_neox': 1443, 'n_words': 553}