<commit_before>#!/bin/sh

if [ $# != 1 ]; then
    echo "Usage: Install <version>"
    exit 0
fi

scons mode=opt
sudo mkdir "/Programs/Diluculum"
sudo mkdir "/Programs/Diluculum/$1"
sudo mkdir "/Programs/Diluculum/$1/docs"

sudo cp -r lib include README.txt HISTORY.txt "/Programs/Diluculum/$1"
sudo rm "/Programs/Diluculum/$1/lib/.sconsign"

doxygen

sudo cp -r Documentation/html/* "/Programs/Diluculum/$1/docs"

SymlinkProgram Diluculum "$1"<commit_msg>The 'Install.sh' script now works in rootless GoboLinux, too. (but this new version was not yet tested in a "real" GoboLinux machine)<commit_after>#!/bin/sh

# If this script has any chance of working, it is under GoboLinux.
if [ ! $goboPrograms ]; then
    echo "Sorry, this ad hoc installation script will work only under GoboLinux"
    echo "(or, at least, Rootless GoboLinux). And, frankly, even under"
    echo "GoboLinux things are not guaranteed..."
    exit 1
fi

# Check command-line parameters
if [ $# != 1 ]; then
    echo "Usage: Install <version>"
    exit 1
fi

# If we are running in a "real" (not rootless) GoboLinux, we'll have to use
# 'sudo' to perform some instalation steps.
if [ ! $ROOTLESS_GOBOLINUX ]; then
    SUDO=sudo
fi

# If necessary, recompile the library (the optimized version)
scons mode=opt

# Remake the documentation
doxygen

# Perform the actual instalation
$SUDO mkdir -p "${goboPrograms}/Diluculum/$1/docs"
$SUDO cp -r lib include README.txt HISTORY.txt "${goboPrograms}/Diluculum/$1"
$SUDO rm "${goboPrograms}/Diluculum/$1/lib/.sconsign"
$SUDO cp -r Documentation/html/* "${goboPrograms}/Diluculum/$1/docs"
SymlinkProgram Diluculum "$1"

# Done!
exit 0
{'fraction_non_alphanumeric': 0.12249848392965433, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 4.108359133126935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5159590', 'n_tokens_mistral': 621, 'n_tokens_neox': 576, 'n_words': 191}