2022-10-18 11:27:03 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# set things
|
|
|
|
set -o nounset
|
|
|
|
set -o xtrace
|
|
|
|
set -o errexit
|
|
|
|
set -eo pipefail
|
|
|
|
|
|
|
|
# dirs
|
|
|
|
srcDir="/home/$USER/"
|
|
|
|
srcName="main.js"
|
|
|
|
targetDir="/home/$USER/"
|
2023-03-28 07:46:15 +00:00
|
|
|
targetName="c4k-forgejo.js"
|
2022-10-18 11:27:03 +00:00
|
|
|
|
|
|
|
echo "build"
|
|
|
|
shadow-cljs compile frontend
|
|
|
|
|
|
|
|
echo "move and rename file"
|
|
|
|
cp $srcDir$srcName $targetDir$targetName
|
|
|
|
|
|
|
|
echo "build"
|
|
|
|
(cd $targetDir; lein ring server)
|