feat/release-page #2
1 changed files with 1 additions and 6 deletions
Makefile: case + dpkg-buildpackage on one logical line
Some checks failed
Forgejo Release postit-deb / release (push) Has been cancelled
Some checks failed
Forgejo Release postit-deb / release (push) Has been cancelled
The case ... esac block was split across multiple recipe lines, and make runs each line in its own shell — so dash saw 'esac' as a stray keyword and bailed with 'unexpected end of file (expecting ")")'. Same shell-line gotcha as the earlier if/then/fi. Collapse into one line: DPKG_HOST=$(case ... echo arm64 ... esac) && DEB_HOST_ARCH=$DPKG_HOST ... dpkg-buildpackage -a$DPKG_HOST. All in one shell, one set of variable assignments.
commit
a951e3f62d
7
Makefile
7
Makefile
|
|
@ -60,12 +60,7 @@ deb:
|
||||||
# NOT used because it refuses to set up the env when the CC
|
# NOT used because it refuses to set up the env when the CC
|
||||||
# system type doesn't match (we don't have an arm64 C
|
# system type doesn't match (we don't have an arm64 C
|
||||||
# compiler — we cross-publish .NET binaries only).
|
# compiler — we cross-publish .NET binaries only).
|
||||||
case "$(POSTIT_RUNTIME)" in
|
DPKG_HOST=$$(case "$(POSTIT_RUNTIME)" in linux-arm64) echo arm64 ;; linux-x64) echo amd64 ;; *) echo "unsupported POSTIT_RUNTIME=$(POSTIT_RUNTIME)" >&2; exit 1 ;; esac) && DEB_HOST_ARCH=$$DPKG_HOST DEB_BUILD_ARCH=amd64 DEB_HOST_GNU_TYPE=aarch64-linux-gnu DEB_BUILD_GNU_TYPE=x86_64-linux-gnu POSTIT_GIT_URL=$(POSTIT_GIT_URL) POSTIT_GIT_TAG=$(POSTIT_GIT_TAG) POSTIT_RUNTIME=$(POSTIT_RUNTIME) dpkg-buildpackage -us -uc -b -a$$DPKG_HOST
|
||||||
linux-arm64) DPKG_HOST=arm64 ;;
|
|
||||||
linux-x64) DPKG_HOST=amd64 ;;
|
|
||||||
*) echo " ERROR: unsupported POSTIT_RUNTIME=$(POSTIT_RUNTIME)" >&2; exit 1 ;;
|
|
||||||
esac
|
|
||||||
DEB_HOST_ARCH=$$DPKG_HOST DEB_BUILD_ARCH=amd64 DEB_HOST_GNU_TYPE=aarch64-linux-gnu DEB_BUILD_GNU_TYPE=x86_64-linux-gnu POSTIT_GIT_URL=$(POSTIT_GIT_URL) POSTIT_GIT_TAG=$(POSTIT_GIT_TAG) POSTIT_RUNTIME=$(POSTIT_RUNTIME) dpkg-buildpackage -us -uc -b -a$$DPKG_HOST
|
|
||||||
# dpkg-buildpackage already writes the produced .deb to
|
# dpkg-buildpackage already writes the produced .deb to
|
||||||
# /src/_src/../ = $POSTIT_OUT_DIR (its default — there's no
|
# /src/_src/../ = $POSTIT_OUT_DIR (its default — there's no
|
||||||
# flag to change it). So no 'mv' is needed. The old 'mv'
|
# flag to change it). So no 'mv' is needed. The old 'mv'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue