<commit_before>#!/bin/sh

#
# This script builds the Mac OS X package of CernVM-FS.
#

set -e

SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd)
. ${SCRIPT_LOCATION}/../common.sh

if [ $# -lt 2 ]; then
  echo "Usage: $0 <CernVM-FS source directory> <build result location> [<nightly build number>]"
  echo "This script builds CernVM-FS OS X package"
  exit 1
fi

CVMFS_SOURCE_LOCATION="$1"
CVMFS_RESULT_LOCATION="$2"
CVMFS_NIGHTLY_BUILD_NUMBER="${3-0}"

# this uniquely identifies a package in OSX for example to distinguish between
# fresh installations and updates. Keep that consistent!
# Note: It has changed with the transition from PackageMaker to pkgbuild and the
#       preinstall script takes care of checking for outdated versions.
#       Previously it was ch.cern.cvmfs.CVMFS_Package.pkg
CVMFS_CORE_PKG_IDENTIFIER="ch.cern.cvmfs.pkg.Core"
CVMFS_PKG_IDENTIFIER="ch.cern.cvmfs.pkg"
CVMFS_INSTALL_PREFIX="/usr/local"

pkg_basedir=${CVMFS_SOURCE_LOCATION}/packaging/mac
pkg_install_dir=${CVMFS_RESULT_LOCATION}/build
pkg_resource_dir=${CVMFS_RESULT_LOCATION}/resources
pkg_build_dir=${CVMFS_RESULT_LOCATION}/package

# sanity checks
[ ! -d $pkg_install_dir ]           || die "build directory was used before ($pkg_install_dir exists)"
[ ! -d $pkg_build_dir ]             || die "build directory was used before ($pkg_build_dir exists)"
[ ! -d $pkg_resource_dir ]          || die "build directory was used before ($pkg_resource_dir exists)"<commit_msg>FIX: use senseful build directories<commit_after>#!/bin/sh

#
# This script builds the Mac OS X package of CernVM-FS.
#

set -e

SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd)
. ${SCRIPT_LOCATION}/../common.sh

if [ $# -lt 2 ]; then
  echo "Usage: $0 <CernVM-FS source directory> <build result location> [<nightly build number>]"
  echo "This script builds CernVM-FS OS X package"
  exit 1
fi

CVMFS_SOURCE_LOCATION="$1"
CVMFS_RESULT_LOCATION="$2"
CVMFS_NIGHTLY_BUILD_NUMBER="${3-0}"

# this uniquely identifies a package in OSX for example to distinguish between
# fresh installations and updates. Keep that consistent!
# Note: It has changed with the transition from PackageMaker to pkgbuild and the
#       preinstall script takes care of checking for outdated versions.
#       Previously it was ch.cern.cvmfs.CVMFS_Package.pkg
CVMFS_CORE_PKG_IDENTIFIER="ch.cern.cvmfs.pkg.Core"
CVMFS_PKG_IDENTIFIER="ch.cern.cvmfs.pkg"
CVMFS_INSTALL_PREFIX="/usr/local"

pkg_basedir=${CVMFS_SOURCE_LOCATION}/packaging/mac
pkg_install_dir=${CVMFS_RESULT_LOCATION}/pkg_install
pkg_resource_dir=${CVMFS_RESULT_LOCATION}/pkg_resources
pkg_build_dir=${CVMFS_RESULT_LOCATION}/pkg_result

# sanity checks
[ ! -d $pkg_install_dir ]           || die "build directory was used before ($pkg_install_dir exists)"
[ ! -d $pkg_build_dir ]             || die "build directory was used before ($pkg_build_dir exists)"
[ ! -d $pkg_resource_dir ]          || die "build directory was used before ($pkg_resource_dir exists)"
{'fraction_non_alphanumeric': 0.10960298608754666, 'fraction_numerical': 0.005429250084832033, 'mean_word_length': 4.814595660749507, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3775775', 'n_tokens_mistral': 1012, 'n_tokens_neox': 972, 'n_words': 267}