mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-21 10:52:06 +02:00
cleanup clone_library
This commit is contained in:
@ -86,8 +86,6 @@ function get_sketches_json_matrix()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function get_core()
|
function get_core()
|
||||||
{
|
{
|
||||||
echo Setup core for $1
|
echo Setup core for $1
|
||||||
@ -115,3 +113,19 @@ function get_core()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clone_library() {
|
||||||
|
local url=$1
|
||||||
|
echo clone $(basename $url)
|
||||||
|
mkdir -p $HOME/Arduino/libraries
|
||||||
|
cd $HOME/Arduino/libraries
|
||||||
|
git clone --depth 1 $url
|
||||||
|
rm -rf */.git
|
||||||
|
rm -rf */.github
|
||||||
|
rm -rf */examples
|
||||||
|
}
|
||||||
|
|
||||||
|
function hash_library_names() {
|
||||||
|
cd $HOME/Arduino/libraries
|
||||||
|
ls | sha1sum -z | cut -c1-5
|
||||||
|
}
|
Reference in New Issue
Block a user