Compare commits
3 Commits
ca7a3eeb97
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e66ce369d | |||
| 353d1bb781 | |||
| 4337c219da |
+3
-3
@@ -14,7 +14,7 @@ function usage() {
|
|||||||
msgln "USAGE:"
|
msgln "USAGE:"
|
||||||
#msgln " ${prog} <program-name> <program-version> <os>/<platform>..."
|
#msgln " ${prog} <program-name> <program-version> <os>/<platform>..."
|
||||||
msgln " ${prog} <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 " ${prog} --init Create the resource file in the current directory"
|
||||||
msgln
|
msgln
|
||||||
if [ -r "${RESOURCE_FILE}" ]; then
|
if [ -r "${RESOURCE_FILE}" ]; then
|
||||||
@@ -64,7 +64,7 @@ platform=("linux/amd64" "darwin/arm64")
|
|||||||
#--- end of file ---
|
#--- end of file ---
|
||||||
|
|
||||||
eot
|
eot
|
||||||
msgln "Resource file '${RESOURCE_FILE}' create"
|
msgln "Resource file '${RESOURCE_FILE}' create. Edit it to set valid values."
|
||||||
#${EDITOR-vi} "${RESOURCE_FILE}"
|
#${EDITOR-vi} "${RESOURCE_FILE}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@@ -197,7 +197,7 @@ eot
|
|||||||
## -- MAIN -- ##
|
## -- MAIN -- ##
|
||||||
createVersionSource
|
createVersionSource
|
||||||
|
|
||||||
if [ "${1}" == "--dev" ]; then
|
if [ "${1}" == "--local" ]; then
|
||||||
buildLocal
|
buildLocal
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ PKG_BRANCH=main
|
|||||||
for pkg in $(grep -o "${PKG_PATTERN}" go.mod); do
|
for pkg in $(grep -o "${PKG_PATTERN}" go.mod); do
|
||||||
go get "${pkg}@${PKG_BRANCH}"
|
go get "${pkg}@${PKG_BRANCH}"
|
||||||
done
|
done
|
||||||
go build
|
./build.bash --local
|
||||||
|
|||||||
Reference in New Issue
Block a user