54 lines
950 B
Bash
54 lines
950 B
Bash
#!/bin/bash
|
|
|
|
|
|
unameOut="$(uname -s)"
|
|
case "${unameOut}" in
|
|
Linux*)
|
|
machine=Linux;;
|
|
Darwin*)
|
|
machine=Mac;;
|
|
CYGWIN*)
|
|
machine=Cygwin;;
|
|
MINGW*)
|
|
machine=MinGw;;
|
|
MSYS_NT*)
|
|
machine=Git;;
|
|
*)
|
|
machine="UNKNOWN:${unameOut}"
|
|
esac
|
|
|
|
if [ "$machine" = "Mac" ]
|
|
then
|
|
pkg_manager='brew'
|
|
echo "Installing brew package manager"
|
|
bash programs/package_manager/brew/install_brew.sh
|
|
fi
|
|
|
|
if [ "$machine" = "Linux" ]
|
|
then
|
|
pkg_manager="apt"
|
|
fi
|
|
|
|
|
|
echo "Installing ${pkg_manager} packages"
|
|
bash programs/package_manager/${pkg_manager}/packages.sh
|
|
if [ -f programs/package_manager/${pkg_manager}/others ]
|
|
then
|
|
for file in programs/package_manager/${pkg_manager}/others/*.sh
|
|
do
|
|
bash ${file}
|
|
done
|
|
fi
|
|
|
|
echo "Installing side packages"
|
|
for file in programs/others/**/*.sh
|
|
do
|
|
bash ${file}
|
|
done
|
|
echo "Installing dotfiles"
|
|
for file in program/dotfiles/**/*.sh
|
|
do
|
|
bash ${file}
|
|
done
|
|
|