2024-06-30 17:12:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-07-09 16:54:59 +00:00
|
|
|
while IFS= read -r line ; do
|
|
|
|
echo "sudo pacman -S --noconfirm --needed $line"
|
|
|
|
done < $1
|
2024-06-30 17:12:07 +00:00
|
|
|
|
|
|
|
# Get Blender
|
|
|
|
while true; do
|
|
|
|
echo -e "\n\n"
|
|
|
|
read -p "Please enter the release of blender you want (eg. 4.1): " blender
|
|
|
|
if [[ ! -z $blender ]]; then
|
|
|
|
if [[ ! -d /home/$(whoami)/Software ]]; then
|
2024-07-09 04:26:40 +00:00
|
|
|
mkdir /home/$(whoami)/Software
|
2024-06-30 17:12:07 +00:00
|
|
|
fi
|
2024-07-09 04:26:40 +00:00
|
|
|
cd /home/$(whoami)/Software
|
2024-06-30 17:12:07 +00:00
|
|
|
count=9
|
|
|
|
while [ $count -ge 0 ]; do
|
2024-07-09 04:26:40 +00:00
|
|
|
wget "https://download.blender.org/release/Blender$blender/blender-$blender.$count-linux-x64.tar.xz"
|
2024-06-30 17:12:07 +00:00
|
|
|
if [[ $? == 0 ]]; then
|
|
|
|
blenderversion="blender-$blender.$count-linux-x64.tar.xz"
|
2024-07-09 04:26:40 +00:00
|
|
|
cd /home/$(whoami)/Software/ && tar -xvf $blenderversion
|
2024-06-30 17:12:07 +00:00
|
|
|
break
|
|
|
|
fi
|
|
|
|
((count--))
|
|
|
|
done
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
echo "Couldn't find that version of blender, try again."
|
|
|
|
cd ""
|
|
|
|
else
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|