added #!/bin/bash instead #!/bin/sh
This commit is contained in:
+11
-8
@@ -1,30 +1,33 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
. ./scripts/curl.sh
|
||||
|
||||
pkgname=git
|
||||
pkgver=2.46.0
|
||||
|
||||
git() {
|
||||
if [ ! -d $build/curl ]; then
|
||||
curl
|
||||
fi
|
||||
printf "$GREEN** Building and installing git\n$RESET"
|
||||
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
|
||||
mkdir $build/git
|
||||
cd $build/git
|
||||
tar -xvf $root/downloads/git-2.46.0.tar.xz
|
||||
check $? "Extract git"
|
||||
cd git-2.46.0
|
||||
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.xz
|
||||
check $? "Extract ${pkgname}"
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--host=$CROSS_COMPILE \
|
||||
NO_ICONV=true \
|
||||
ac_cv_fread_reads_directories=true \
|
||||
ac_cv_snprintf_returns_bogus=false
|
||||
check $? "Configure git"
|
||||
check $? "Configure ${pkgname}"
|
||||
make $makeflags
|
||||
check $? "Build git"
|
||||
check $? "Build ${pkgname}"
|
||||
make DESTDIR=$rootfspath install
|
||||
$CROSS_COMPILE-strip --strip-unneeded $rootfspath/usr/bin/* $rootfspath/libexec/git-core/*
|
||||
printf "$GREEN** SUCCESS: Building and installing git\n$RESET"
|
||||
printf "$GREEN** SUCCESS: Building and installing ${pkgname}\n$RESET"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user