<commit_before>#!/bin/bash

# Name: linkup.sh
# Author: <NAME>
#
# Description: Used for creating shortcuts in a user's bin directory and the magma development scripts.

LINK=`readlink -f $0`
BASE=`dirname $LINK`

cd $BASE/../../

MAGMA_DIST=`pwd`

process() {
	SRC=`find $MAGMA_DIST/ -name $1`
	mkdir --parents "$HOME/bin"
	rm -f "$HOME/bin/$2"
	ln -s "$SRC" "$HOME/bin/$2"
	chmod +x "$HOME/bin/$2"
}

process "build.lib.sh" "build.lib"
process "build.docs.sh" "build.docs"
process "build.check.sh" "build.check"
process "build.magma.sh" "build.magma"

process "magma.vg.sh" "magma.vg"
process "magma.helgrind.sh" "magma.helgrind"
process "magma.mem.sh" "magma.mem"
process "magma.num.sh" "magma.num"
process "magma.run.sh" "magma.run"
process "magma.kill.sh" "magma.kill"
process "magma.loop.sh" "magma.loop"
process "magma.stat.sh" "magma.stat"
process "magma.watcher.sh" "magma.watcher"
process "magma.killhard.sh" "magma.killhard"

process "check.vg.sh" "check.vg"
process "check.run.sh" "check.run"
process "check.massif.sh" "check.massif"
process "check.helgrind.sh" "check.helgrind"
process "check.callgrind.sh" "check.callgrind"
process "check.cachegrind.sh" "check.cachegrind"

process "tmap.sh" "tmap"<commit_msg>Updating linkup.sh to make the find command search only the scripts dir.<commit_after>#!/bin/bash

# Name: linkup.sh
# Author: <NAME>
#
# Description: Used for creating shortcuts in a user's bin directory and the magma development scripts.

LINK=`readlink -f $0`
BASE=`dirname $LINK`

cd $BASE/../../

MAGMA_DIST=`pwd`

process() {
	SRC=`find $MAGMA_DIST/dev/scripts/ -name $1`
	mkdir --parents "$HOME/bin"
	rm -f "$HOME/bin/$2"
	ln -s "$SRC" "$HOME/bin/$2"
	chmod +x "$HOME/bin/$2"
}

process "build.lib.sh" "build.lib"
process "build.docs.sh" "build.docs"
process "build.check.sh" "build.check"
process "build.magma.sh" "build.magma"

process "magma.vg.sh" "magma.vg"
process "magma.helgrind.sh" "magma.helgrind"
process "magma.mem.sh" "magma.mem"
process "magma.num.sh" "magma.num"
process "magma.run.sh" "magma.run"
process "magma.kill.sh" "magma.kill"
process "magma.loop.sh" "magma.loop"
process "magma.stat.sh" "magma.stat"
process "magma.watcher.sh" "magma.watcher"
process "magma.killhard.sh" "magma.killhard"

process "check.vg.sh" "check.vg"
process "check.run.sh" "check.run"
process "check.massif.sh" "check.massif"
process "check.helgrind.sh" "check.helgrind"
process "check.callgrind.sh" "check.callgrind"
process "check.cachegrind.sh" "check.cachegrind"

process "tmap.sh" "tmap"
{'fraction_non_alphanumeric': 0.18023025009924573, 'fraction_numerical': 0.003969829297340214, 'mean_word_length': 4.675675675675675, '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': '620050', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1021, 'n_words': 228}