update pia-install to use libre-soc-install.sh
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 25 Aug 2021 00:10:17 +0000 (17:10 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 25 Aug 2021 00:10:17 +0000 (17:10 -0700)
pia-install

index 7ed614777636ea9d2f920bb46bf21fb60c88c867..86e9d361dbba6eae2bf0dfe5669199a1ab331816 100755 (executable)
@@ -1,14 +1,11 @@
 #!/bin/bash
-if ! command -v rustup &> /dev/null
-then
-    echo -e "Rustup could not be found, it can be installed by running the following command: curl --proto \047=https\047 --tlsv1.2 -sSf https://sh.rustup.rs | sh"
-    exit
+if ! command -v rustup &> /dev/null; then
+    echo "Rustup could not be found, it can be installed by running the following command: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
+    exit 1
 fi
-cd /home/$USER/src
+cd ~/src
 rustup default stable
 rustup update
-cargo install maturin
 git clone https://salsa.debian.org/Kazan-team/power-instruction-analyzer.git pia
 cd pia
-maturin build --cargo-extra-args=--features=python-extension
-python3 -m pip install --user target/wheels/*.whl
+exec ./libre-soc-install.sh