Script updates
This commit is contained in:
@ -58,21 +58,16 @@ function do_dir {
|
|||||||
|
|
||||||
for i in ProbeStar NTCNA CAMP Gits External
|
for i in ProbeStar NTCNA CAMP Gits External
|
||||||
do
|
do
|
||||||
if [ -L "$i" ]; then
|
if [ "$i" == "ProbeStar" ]; then
|
||||||
echo "$i: Symlinked"
|
$HOME/bin/pstar-update.sh
|
||||||
echo "============="
|
else
|
||||||
elif [ -d "$i" ]; then
|
d=`echo "${i,,}"`
|
||||||
if [ "$i" == "ProbeStar" ]; then
|
if [ -f $HOME/bin/$d-update.sh ]; then
|
||||||
$HOME/bin/pstar-update.sh
|
$HOME/bin/$d-update.sh
|
||||||
else
|
elif [ -d $i ]; then
|
||||||
d=`echo "${i,,}"`
|
cd $i
|
||||||
if [ -f $HOME/bin/$d-update.sh ]; then
|
do_dir $i
|
||||||
$HOME/bin/$d-update.sh
|
cd ..
|
||||||
elif [ -d $i ]; then
|
|
||||||
cd $i
|
|
||||||
do_dir $i
|
|
||||||
cd ..
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! -d $HOME/CAMP ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
function do_git {
|
function do_git {
|
||||||
echo $1 "(Git)"
|
echo $1 "(Git)"
|
||||||
cd $1
|
cd $1
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Pip
|
# Pip
|
||||||
sudo -H pip3 install --upgrade pip
|
pip3 install --upgrade pip
|
||||||
|
|
||||||
# Python3
|
# Python3
|
||||||
sudo -H pip3 install --upgrade pyserial numpy pyasn1 scapy virtualenv virtualenvwrapper matplotlib
|
pip3 install --upgrade pyserial numpy pyasn1 scapy virtualenv virtualenvwrapper matplotlib
|
||||||
|
|||||||
@ -21,7 +21,7 @@ fi
|
|||||||
if [ -f /opt/ros/noetic/setup.bash ]; then
|
if [ -f /opt/ros/noetic/setup.bash ]; then
|
||||||
# 20.04
|
# 20.04
|
||||||
source /opt/ros/noetic/setup.bash
|
source /opt/ros/noetic/setup.bash
|
||||||
PYTHONPATH=$PYTHONPATH:$HOME/catkin_ws/devel/lib/python3/dist-packages
|
export PYTHONPATH=$PYTHONPATH:$HOME/catkin_ws/devel/lib/python3/dist-packages
|
||||||
elif [ -f /opt/ros/melodic/setup.bash ]; then
|
elif [ -f /opt/ros/melodic/setup.bash ]; then
|
||||||
# 16.04/18.04
|
# 16.04/18.04
|
||||||
source /opt/ros/melodic/setup.bash
|
source /opt/ros/melodic/setup.bash
|
||||||
|
|||||||
Reference in New Issue
Block a user