[ghcup-bin] binary name
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
parent
09245463a1
commit
622013ef25
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ CWD=$(pwd)
|
||||||
PRGNAM=$(basename $CWD)
|
PRGNAM=$(basename $CWD)
|
||||||
VERSION=${VERSION:-$(curl -s "https://gitlab.haskell.org/haskell/ghcup-hs/-/tags?format=atom" | grep "title>v" | head -n1 | grep -o "[0-9rc.-]*")}
|
VERSION=${VERSION:-$(curl -s "https://gitlab.haskell.org/haskell/ghcup-hs/-/tags?format=atom" | grep "title>v" | head -n1 | grep -o "[0-9rc.-]*")}
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-gwh}
|
TAG=${TAG:-gwh}
|
||||||
TMP=${TMP:-/tmp/$TAG}
|
TMP=${TMP:-/tmp/$TAG}
|
||||||
PKG=$TMP/pkg-$PRGNAM
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
|
@ -22,8 +22,8 @@ mkdir -p $REPOSITORY
|
||||||
rm -fr $PKG
|
rm -fr $PKG
|
||||||
mkdir -p $PKG/usr/bin
|
mkdir -p $PKG/usr/bin
|
||||||
|
|
||||||
cp $REPOSITORY/${PRGNAM}-${VERSION} $PKG/usr/bin/$PRGNAM
|
cp $REPOSITORY/${PRGNAM}-${VERSION} $PKG/usr/bin/ghcup
|
||||||
chmod 0755 $PKG/usr/bin/$PRGNAM
|
chmod 0755 $PKG/usr/bin/ghcup
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue