From 93c7ca3e86dbe088430826d8503da435cbbe4016 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 17 Dec 2021 12:13:05 +0000 Subject: added hg --- xibuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xibuild b/xibuild index d683e7f..0ec0661 100755 --- a/xibuild +++ b/xibuild @@ -90,6 +90,8 @@ xibuild () { # try get the commit hash for the package if git ls-remote -q $SOURCE &> /dev/null; then VER_HASH=$(git ls-remote $SOURCE $BRANCH ) + elif hg identify $SOURCE &> /dev/null; then + VER_HASH=$(hg identify $SOURCE) else VER_HASH=$(curl -Ls $SOURCE | md5sum) fi @@ -116,6 +118,9 @@ xibuild () { if git ls-remote -q $SOURCE $BRANCH &> /dev/null; then git clone $SOURCE . >> $LOGFILE 2>&1 && printf "$PASS fetched $(du -sh $PKG_BUILD_DIR | awk '{ print $1 }') source\n" || return 1; git checkout $BRANCH >> $LOGFILE 2>&1 + + elif hg identify $SOURCE &> /dev/null; then + hg clone $SOURCE . >> $LOGFILE 2>&1 && printf "$PASS fetched $(du -sh $PKG_BUILD_DIR | awk '{ print $1 }') source\n" || return 1; else DOWNLOADED=$(basename $SOURCE) curl -Ls $SOURCE > $DOWNLOADED -- cgit v1.2.1