Mercurial > vanilla
diff dev/mercurial/mercurial.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
line wrap: on
line diff
--- a/dev/mercurial/mercurial.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/dev/mercurial/mercurial.sh Wed Oct 27 11:32:16 2021 +0200 @@ -26,18 +26,21 @@ : ${CC:=clang} : ${CFLAGS:=-O2} -rm -rf $PKGNAME-$PKGVERSION -tar xvf $PKGNAME-$PKGVERSION.tar.gz -cd $PKGNAME-$PKGVERSION +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.gz + cd $PKGNAME-$PKGVERSION -CC="$CC" \ -CFLAGS="$CFLAGS" \ -make PYTHON=python2 PREFIX=/. all -make PYTHON=python2 PREFIX=/. DESTDIR=$DESTDIR install -install -Dm0755 contrib/hg-ssh $DESTDIR/bin/hg-ssh -install -Dm0755 contrib/hgk $DESTDIR/libexec/mercurial/hgk -install -Dm0644 contrib/zsh_completion $DESTDIR/share/zsh/site-functions/_$PKGNAME -install -Dm0644 contrib/bash_completion $DESTDIR/share/bash-completion/completions/$PKGNAME + CC="$CC" \ + CFLAGS="$CFLAGS" \ + make PYTHON=python2 PREFIX=/. all + make PYTHON=python2 PREFIX=/. DESTDIR=$DESTDIR install + install -Dm0755 contrib/hg-ssh $DESTDIR/bin/hg-ssh + install -Dm0755 contrib/hgk $DESTDIR/libexec/mercurial/hgk + install -Dm0644 contrib/zsh_completion $DESTDIR/share/zsh/site-functions/_$PKGNAME + install -Dm0644 contrib/bash_completion $DESTDIR/share/bash-completion/completions/$PKGNAME -cd .. -rm -rf $PKGNAME-$PKGVERSION + cd .. + rm -rf $PKGNAME-$PKGVERSION +}