From 657c381818a641dacc41a8c26ef8de8dca96d207 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 27 Oct 2023 16:31:36 +0200 Subject: [PATCH] do not use the forgejo target as it may not always exist --- forgejo/build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/forgejo/build.sh b/forgejo/build.sh index 540bdb6..c544f5c 100755 --- a/forgejo/build.sh +++ b/forgejo/build.sh @@ -15,5 +15,9 @@ git clone --depth 1 -b $branch $url $DIR/src cd $DIR/src export TAGS="bindata sqlite sqlite_unlock_notify" make deps-backend backend -make VERSION=v$version GITEA_VERSION=v$version FORGEJO_VERSION=$semver generate forgejo -mv forgejo $DIR/forgejo-$version +# +# use the gitea target here so that branches that do not contain the commit that adds +# the `forgejo` target to the Makefile can build successfully +# +make VERSION=v$version GITEA_VERSION=v$version FORGEJO_VERSION=$semver generate gitea +mv gitea $DIR/forgejo-$version