<commit_before>#!/usr/bin/env /bin/bash
tty -s; if [ $? -ne 0 ]; then
	[ "$UID" -eq 0 ] || exec gksu bash "$0" "$@"
else
	[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
fi

echo "Install log:" > install.log

cp bin/gmosh /usr/bin >> install.log 2>> install.log
cp required/gmpublish_linux /usr/bin >> install.log 2>> install.log
cp required/libsteam_api.so /usr/lib/ >> install.log 2>> install.log

cp required/steam_appid.txt /usr/bin/steam_appid.txt >> install.log  2>> install.log # Has to be in same folder as gmpublish_linux
chmod +x /usr/bin/gmpublish_linux >> install.log 2>> install.log

echo "Checking existence of libsteam.so" >> install.log
if [ ! -f ~/.steam/linux32/libsteam.so ]; then
	echo "    libsteam does not exist" >> install.log
	echo "    Attempting to copy libsteam to ~/.steam/linux32/" >> install.log
	echo "    If this fails you should copy it yourself. Gmosh will not work otherwise" >> install.log
	echo "    cp required/libsteam.so ~/.steam/linux32/" >> install.log<commit_msg>Fixed Linux install.sh after move to /opt.<commit_after>#!/usr/bin/env /bin/bash
tty -s; if [ $? -ne 0 ]; then
	[ "$UID" -eq 0 ] || exec gksu bash "$0" "$@"
else
	[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
fi

echo "Install log:" > install.log

if [ ! -d /opt/gmosh ]; then mkdir /opt/gmosh >> install.log 2>> install.log; fi
cp bin/* /opt/gmosh >> install.log 2>> install.log
cp required/gmpublish_linux /opt/gmosh >> install.log 2>> install.log
cp required/libsteam_api.so /opt/gmosh >> install.log 2>> install.log

ln -sf /opt/gmosh/gmosh /usr/bin/gmosh >> install.log 2>> install.log

cp required/steam_appid.txt /opt/gmosh/steam_appid.txt >> install.log  2>> install.log # Has to be in same folder as gmpublish_linux
chmod +x /opt/gmosh/gmpublish_linux >> install.log 2>> install.log
chmod +x /opt/gmosh/gmosh >> install.log 2>> install.log

echo "Checking existence of libsteam.so" >> install.log
if [ ! -f ~/.steam/linux32/libsteam.so ]; then
	echo "    libsteam does not exist" >> install.log
	echo "    Attempting to copy libsteam to ~/.steam/linux32/" >> install.log
	echo "    If this fails you should copy it yourself. Gmosh will not work otherwise" >> install.log
	echo "    cp required/libsteam.so ~/.steam/linux32/" >> install.log
{'fraction_non_alphanumeric': 0.15637494446912484, 'fraction_numerical': 0.015548645046645935, 'mean_word_length': 3.4156862745098038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 77, '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': '5736938', 'n_tokens_mistral': 866, 'n_tokens_neox': 813, 'n_words': 248}