[scripts] Update build paths

This commit is contained in:
Ciprian Dorin Craciun 2018-11-09 20:52:43 +02:00
parent fff3c6a712
commit a5936b2932

28
.x-run
View file

@ -5,22 +5,23 @@
<< go / execute / server / debug << go / execute / server / debug
"${X_RUN[@]}" ':: go / build / server / debug' "${X_RUN[@]}" ':: go / build / server / debug'
exec -- ./.outputs/server-debug.elf "${@}" exec -- ./.outputs/binaries/debug/cdb-http-server "${@}"
exit -- 1 exit -- 1
!! !!
<< go / execute / server / release << go / execute / server / release
"${X_RUN[@]}" ':: go / build / server / release' "${X_RUN[@]}" ':: go / build / server / release'
exec -- ./.outputs/server-release.elf "${@}" exec -- ./.outputs/binaries/release/cdb-http-server "${@}"
exit -- 1 exit -- 1
!! !!
<< go / build / server / debug << go / build / server / debug
test "${#}" -eq 0 test "${#}" -eq 0
mkdir -p -- ./.outputs/binaries/debug
exec -- "${X_RUN[@]}" ':: go / tool' build \ exec -- "${X_RUN[@]}" ':: go / tool' build \
-v \ -v \
-o ./.outputs/server-debug.elf \ -o ./.outputs/binaries/debug/cdb-http-server \
-- ./sources/cmd/server.go \ -- ./sources/cmd/server.go \
# #
exit -- 1 exit -- 1
@ -28,10 +29,11 @@
<< go / build / server / release << go / build / server / release
test "${#}" -eq 0 test "${#}" -eq 0
mkdir -p -- ./.outputs/binaries/release
exec -- "${X_RUN[@]}" ':: go / tool' build \ exec -- "${X_RUN[@]}" ':: go / tool' build \
-v \ -v \
-ldflags '-s' \ -ldflags '-s' \
-o ./.outputs/server-release.elf \ -o ./.outputs/binaries/release/cdb-http-server \
-- ./sources/cmd/server.go \ -- ./sources/cmd/server.go \
# #
exit -- 1 exit -- 1
@ -49,8 +51,8 @@
mkdir -- ./.outputs/publish/bin mkdir -- ./.outputs/publish/bin
fi fi
cp -T -- \ cp -T -- \
./.outputs/server-release.elf \ ./.outputs/binaries/release/cdb-http-server \
./.outputs/publish/bin/server.elf \ ./.outputs/publish/binaries/cdb-http-server \
# #
exit -- 0 exit -- 0
!! !!
@ -60,22 +62,23 @@
<< go / execute / archiver / debug << go / execute / archiver / debug
"${X_RUN[@]}" ':: go / build / archiver / debug' "${X_RUN[@]}" ':: go / build / archiver / debug'
exec -- ./.outputs/archiver-debug.elf "${@}" exec -- ./.outputs/binaries/debug/cdb-http-archiver "${@}"
exit -- 1 exit -- 1
!! !!
<< go / execute / archiver / release << go / execute / archiver / release
"${X_RUN[@]}" ':: go / build / archiver / release' "${X_RUN[@]}" ':: go / build / archiver / release'
exec -- ./.outputs/archiver-release.elf "${@}" exec -- ./.outputs/binaries/release/cdb-http-archiver "${@}"
exit -- 1 exit -- 1
!! !!
<< go / build / archiver / debug << go / build / archiver / debug
test "${#}" -eq 0 test "${#}" -eq 0
mkdir -p -- ./.outputs/binaries/debug
exec -- "${X_RUN[@]}" ':: go / tool' build \ exec -- "${X_RUN[@]}" ':: go / tool' build \
-v \ -v \
-o ./.outputs/archiver-debug.elf \ -o ./.outputs/binaries/debug/cdb-http-archiver \
-- ./sources/cmd/archiver.go \ -- ./sources/cmd/archiver.go \
# #
exit -- 1 exit -- 1
@ -83,10 +86,11 @@
<< go / build / archiver / release << go / build / archiver / release
test "${#}" -eq 0 test "${#}" -eq 0
mkdir -p -- ./.outputs/binaries/release
exec -- "${X_RUN[@]}" ':: go / tool' build \ exec -- "${X_RUN[@]}" ':: go / tool' build \
-v \ -v \
-ldflags '-s' \ -ldflags '-s' \
-o ./.outputs/archiver-release.elf \ -o ./.outputs/binaries/release/cdb-http-archiver \
-- ./sources/cmd/archiver.go \ -- ./sources/cmd/archiver.go \
# #
exit -- 1 exit -- 1
@ -104,8 +108,8 @@
mkdir -- ./.outputs/publish/bin mkdir -- ./.outputs/publish/bin
fi fi
cp -T -- \ cp -T -- \
./.outputs/archiver-release.elf \ ./.outputs/binaries/release/cdb-http-archiver \
./.outputs/publish/bin/archiver.elf \ ./.outputs/publish/binaries/cdb-http-archiver \
# #
exit -- 0 exit -- 0
!! !!