bash-stuff/p7zip-1602/bainst.sh

21 lines
619 B
Bash
Raw Normal View History

#!/bin/bash
echo "[+] Cleaning..."
make clean;
echo "[+] Building..."
make -j$(nproc --all) all5;
if [ $? -eq 0 ]; then
echo "[+] Install Started!"
sudo cp bin/7z.so /usr/local/bin/ -f;
sudo cp bin/7zCon.sfx /usr/local/bin/ -f;
sudo cp bin/7zG /usr/local/bin/ -f;
sudo cp bin/Client7z /usr/local/bin/ -f;
sudo cp bin/LzmaCon /usr/local/bin/ -f;
sudo cp bin/7zFM_do_not_use /usr/local/bin/7zFM -f;
sudo mkdir -p /usr/local/bin/Codecs;
sudo cp bin/Codecs/* /usr/local/bin/Codecs -f;
sudo cp 7zFM.desktop /usr/share/applications/ -f;
echo "[+] Install Completed!"
else
echo "[-] Build Failed!"
fi;