<commit_before>#!/bin/bash
# Packages the generated executable with the required libraries and resources

source config.sh

build_dir="build"
if [ -n "$1" ]; then
        build_dir="$1"
fi

package_dir="pkg"
if [ "$package_dir" != "." ]; then
	mkdir -p $package_dir
fi

package_file="$game-$version_major.$version_minor.$version_release-build$(date +%Y.%m.%d).tar.gz"
if [ -n "$2" ]; then
        package_file="$2"
fi

if [ -d "$game" ]; then
	echo "Failed to package: temporary directory \"$game\" already exists"
	exit 1
fi

./build.sh norun "$build_dir"

mkdir "$game"
cp "$build_dir/$game" "$game/$game"
cp -r "./resources/" "$game/"
cp -r "./cfg/" "$game/"

# Copy dynamic libraries
mkdir "$game/lib"
#libraries="$(ldd $build_dir/$game | grep so | sed -e '/^[^\t]/ d' | sed -e 's/\t//' | sed -e 's/.*=..//' | sed -e 's/ (0.*)//' | uniq)"
libraries="
libassimp.so.3
libfreetype.so.6
libGLEW.so.2.0
libpcre.so.1<commit_msg>Update package.sh to include the default shader files<commit_after>#!/bin/bash
# Packages the generated executable with the required libraries and resources

source config.sh

build_dir="build"
if [ -n "$1" ]; then
        build_dir="$1"
fi

package_dir="pkg"
if [ "$package_dir" != "." ]; then
	mkdir -p $package_dir
fi

package_file="$game-$version_major.$version_minor.$version_release-build$(date +%Y.%m.%d).tar.gz"
if [ -n "$2" ]; then
        package_file="$2"
fi

if [ -d "$game" ]; then
	echo "Failed to package: temporary directory \"$game\" already exists"
	exit 1
fi

./build.sh norun "$build_dir"

mkdir "$game"
mkdir -p "$game/bee/render/"
cp "$build_dir/$game" "$game/$game"
cp -r "./resources/" "$game/"
cp -r "./cfg/" "$game/"
cp -r "./bee/render/shader" "$game/bee/render/"

# Copy dynamic libraries
mkdir "$game/lib"
#libraries="$(ldd $build_dir/$game | grep so | sed -e '/^[^\t]/ d' | sed -e 's/\t//' | sed -e 's/.*=..//' | sed -e 's/ (0.*)//' | uniq)"
libraries="
libassimp.so.3
libfreetype.so.6
libGLEW.so.2.0
libpcre.so.1
{'fraction_non_alphanumeric': 0.20975114271203657, 'fraction_numerical': 0.0111731843575419, 'mean_word_length': 3.477272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4766525', 'n_tokens_mistral': 773, 'n_tokens_neox': 741, 'n_words': 207}