commit of the day

This commit is contained in:
thomas 2023-07-11 23:00:08 +02:00
parent 0925d5a9e4
commit 568c7a4342
19 changed files with 67 additions and 64 deletions

View file

@ -29,16 +29,11 @@ configure_depot_nodejs() {
NODE_VERSION=16
[ ! "$1" == "" ] && NODE_VERSION=$1
XNODE_VERSION=${NODE_VERSION}.x
if [ -e /etc/apt/sources.list.d/nodesource.list ]
then
grep -q ${XNODE_VERSION} /etc/apt/sources.list.d/nodesource.list
if [ $? -ne 0 ]
then
wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash
fi
else
wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash
fi
grep -q ${XNODE_VERSION} /etc/apt/sources.list.d/nodesource.list
if [ $? -ne 0 ]
then
wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash
fi
echo -e "Package: nodejs\\nPin: version ${NODE_VERSION}.*\\nPin-Priority: 1000" > /etc/apt/preferences.d/nodejs
}
@ -46,14 +41,11 @@ install_go() {
GO_VERSION=1.20.5
[ ! "$1" == "" ] && GO_VERSION=$1
PATH=$PATH:/usr/local/go/bin
if [ "$(whereis go | cut -d ":" -f 2)" == "" ]
then
if [ ! "$(go version)" == "go version go${GO_VERSION} linux/amd64" ] ;
then
rm -rvf /usr/local/go
wget -qO - https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -C /usr/local -xz
fi
fi
if [ ! "$(go version)" == "go version go${GO_VERSION} linux/amd64" ] ;
then
rm -rvf /usr/local/go/
wget -qO - https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -C /usr/local -xz
fi
}
install_rust() {
@ -65,6 +57,11 @@ install_clojure() {
wget -qO - https://download.clojure.org/install/linux-install-1.11.1.1155.sh | bash
}
minimum_package() {
base_package_upgrade
}
default_prebuild(){
get_git_source
}