New install script updated for github

This commit is contained in:
Eric Coissac
2024-07-29 14:35:21 +02:00
parent 2247c3bc0a
commit bc1aaaf7d9
3 changed files with 10 additions and 8 deletions

View File

@ -5,7 +5,7 @@ They are implemented in *GO* and are tens of times faster than OBITools2.
The git for *OBITools4* is available at :
> https://metabarcoding.org/obitools4
> https://github.com/metabarcoding/obitools4
## Installing *OBITools V4*
@ -13,7 +13,7 @@ An installation script that compiles the new *OBITools* on your Unix-like system
The easiest way to run it is to copy and paste the following command into your terminal
```{bash}
curl -L https://metabarcoding.org/obitools4/install.sh | bash
curl -L https://raw.githubusercontent.com/metabarcoding/obitools4/master/install_obitools.sh | bash
```
By default, the script installs the *OBITools* commands and other associated files into the `/usr/local` directory.
@ -33,7 +33,7 @@ available on your system, the installation script offers two options:
You can use these options by following the installation command:
```{bash}
curl -L https://metabarcoding.org/obitools4/install.sh | \
curl -L https://raw.githubusercontent.com/metabarcoding/obitools4/master/install_obitools.sh | \
bash -s -- --install-dir test_install --obitools-prefix k
```

View File

@ -4,7 +4,7 @@ INSTALL_DIR="/usr/local"
OBITOOLS_PREFIX=""
# default values
URL="https://go.dev/dl/"
OBIURL4="https://git.metabarcoding.org/obitools/obitools4/obitools4/-/archive/master/obitools4-master.tar.gz"
OBIURL4="https://github.com/metabarcoding/obitools4/archive/refs/heads/master.zip"
INSTALL_DIR="/usr/local"
OBITOOLS_PREFIX=""
@ -106,8 +106,10 @@ curl "$GOURL" \
PATH="$(pwd)/go/bin:$PATH"
export PATH
curl -L "$OBIURL4" \
| tar zxf -
curl -L "$OBIURL4" > master.zip
unzip master.zip
echo "Install OBITOOLS from : $OBIURL4"
cd obitools4-master || exit

View File

@ -7,8 +7,8 @@ import (
// TODO: The version number is extracted from git. This induces that the version
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "4d86483"
var _Version = "Release 4.2.0"
var _Commit = "2247c3b"
var _Version = ""
// Version returns the version of the obitools package.
//