Compare commits
5 Commits
ba100d86f2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e66ce369d | |||
| 353d1bb781 | |||
| 4337c219da | |||
| ca7a3eeb97 | |||
| 5d4a6ac058 |
+4
-4
@@ -14,7 +14,7 @@ function usage() {
|
||||
msgln "USAGE:"
|
||||
#msgln " ${prog} <program-name> <program-version> <os>/<platform>..."
|
||||
msgln " ${prog} <os>/<platform>..."
|
||||
msgln " ${prog} --dev Build the local exec"
|
||||
msgln " ${prog} --local Build the local exec"
|
||||
msgln " ${prog} --init Create the resource file in the current directory"
|
||||
msgln
|
||||
if [ -r "${RESOURCE_FILE}" ]; then
|
||||
@@ -64,8 +64,8 @@ platform=("linux/amd64" "darwin/arm64")
|
||||
#--- end of file ---
|
||||
|
||||
eot
|
||||
msgln "Resource file '${RESOURCE_FILE}' create"
|
||||
${EDITOR-vi} "${RESOURCE_FILE}"
|
||||
msgln "Resource file '${RESOURCE_FILE}' create. Edit it to set valid values."
|
||||
#${EDITOR-vi} "${RESOURCE_FILE}"
|
||||
exit
|
||||
fi
|
||||
|
||||
@@ -197,7 +197,7 @@ eot
|
||||
## -- MAIN -- ##
|
||||
createVersionSource
|
||||
|
||||
if [ "${1}" == "--dev" ]; then
|
||||
if [ "${1}" == "--local" ]; then
|
||||
buildLocal
|
||||
exit
|
||||
fi
|
||||
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
GO_SRC="/go/src"
|
||||
PKG_PATTERN="git\.portale-stac\.it/[^ ]*"
|
||||
PKG_BRANCH=main
|
||||
|
||||
#cd "${GO_SRC}"
|
||||
#git clone -b main https://git.portale-stac.it/go/dev-expr.git
|
||||
#cd "dev-expr"
|
||||
for pkg in $(grep -o "${PKG_PATTERN}" go.mod); do
|
||||
go get "${pkg}@${PKG_BRANCH}"
|
||||
done
|
||||
./build.bash --local
|
||||
Reference in New Issue
Block a user