43 lines
717 B
Bash
Executable File
43 lines
717 B
Bash
Executable File
#!/bin/sh
|
|
#Author: Jake G
|
|
#Date: 2024
|
|
#Filename: setup.sh
|
|
|
|
PKG_MNGR=""
|
|
|
|
remove_template_examples () {
|
|
echo "does nothing right now"
|
|
}
|
|
|
|
install_needed_dependencies () {
|
|
# Check the OS
|
|
echo "checking the OS..."
|
|
# If it's debian based then apt install
|
|
|
|
# If it's freeBSD then pkg
|
|
|
|
# If it's windows....you're SOL
|
|
}
|
|
|
|
create_project_symlinks () {
|
|
# Allows the clangd LSP to find it.
|
|
ln -s ./build/compile_commands.json ./compile_commands.json
|
|
}
|
|
|
|
build_cpputest () {
|
|
touch build
|
|
cd ./build
|
|
make
|
|
#TODO: finish this function
|
|
}
|
|
|
|
|
|
# The default setup stuff.
|
|
default () {
|
|
remove_template_examples
|
|
install_needed_dependencies
|
|
create_project_symlinks
|
|
}
|
|
|
|
default
|