changelog shortlog graph tags branches files raw help

Mercurial > infra / changeset: added basic deploy script

changeset 58: 8d8da0d4d52f
parent 57: 0e2c38d2f0ec
child 59: 25af64bdea59
author: ellis <ellis@rwest.io>
date: Wed, 03 Jan 2024 18:00:16 -0500
files: makefile scripts/deploy.sh
description: added basic deploy script
     1.1--- a/makefile	Wed Jan 03 17:33:32 2024 -0500
     1.2+++ b/makefile	Wed Jan 03 18:00:16 2024 -0500
     1.3@@ -18,9 +18,11 @@
     1.4 D:=dist
     1.5 SRC:=comp
     1.6 HG_COMMIT:=$(shell hg id -i)
     1.7-
     1.8+DESTINATION:=/mnt/y/data/packy
     1.9 # requires emacs-build-minimal
    1.10 worker:rocksdb-install sbcl-install ts-langs-install quicklisp-install
    1.11+# artifacts can deploy to dist/TARGET - need target triple first
    1.12+deploy:$(D) $(DESTINATION);cd $< && ../scripts/deploy.sh lisp rust bundle vc
    1.13 # init:sbcl rust emacs rocksdb comp virt;
    1.14 # dist/linux dist/rust dist/bundle
    1.15 all:dist/cdn dist/comp dist/lisp dist/rust dist/sbcl dist/rocksdb dist/emacs
     2.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2+++ b/scripts/deploy.sh	Wed Jan 03 18:00:16 2024 -0500
     2.3@@ -0,0 +1,11 @@
     2.4+#!/bin/sh
     2.5+if [ -n "${DESTINATION}" ]; then DESTINATION="/mnt/y/data/packy"; fi
     2.6+shift
     2.7+for var in "$@"
     2.8+do
     2.9+  if [ -e "$var" ]; then
    2.10+    cp -rf "$var" "$DESTINATION"
    2.11+  else 
    2.12+    echo "input is missing: $var"
    2.13+  fi
    2.14+done