changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / skelfile

changeset 354: aeef48e62bc0
parent: 254cca648492
child: 49c3f3d11432
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 14 May 2024 16:44:11 -0400
permissions: -rw-r--r--
description: packy cli
1 ;;; skelfile --- CC/core skelfile -*- mode: skel; -*-
2 :name "core"
3 :author "Richard Westhaver <ellis@rwest.io>"
4 :version "0.1.0"
5 :license "MPL"
6 :stash ".stash"
7 :store ".store"
8 :description "The Compiler Company Core"
9 :tags ("core" "lisp" "rust" "emacs" "c")
10 :imports ("lisp/skelfile" "rust/skelfile" "emacs/skelfile" "c/skelfile")
11 :vc :hg
12 :docs ((:org "readme"))
13 :scripts "x.lisp"
14 :env (home (cc "clang") shell term)
15 :rules
16 ((all (x compile std prelude build))
17  (x () #$if [ ! -f x ];
18  then ./x.lisp
19  fi$#)
20  (clean ()
21  #$rm -vf x$#
22  #$rm -vrf .stash$#
23  #$find emacs -name '*.elc' -type f -delete$#
24  #$find lisp -name '*.fasl' -type f -delete$#
25  #$echo 'cargo clean:' && cd rust && cargo clean$#)
26  (rdb (x) #$./x build rdb$#)
27  (skel (x) #$./x build skel$#)
28  (organ (x) #$./x build organ$#)
29  (homer (x) #$./x build homer$#)
30  (packy (x) #$./x build packy$#)
31  (build (x) #$./x build$#)
32  (compile (x) #$./x compile$#)
33  (std (x) #$./x save std$#)
34  (prelude (x) #$./x save prelude$#)
35  (box () #$podman build . --build-arg IMAGE=box -t core$#)
36  ;; x does the same thing, having issues with passing the shell input
37  ;; to SKEL though.
38  (install () #$d=/usr/local/bin
39  cd .stash
40  for f in $(find . -type f ! -name "*.*")
41  do echo "$(basename $f) -> $d"
42  install -C -m 755 $f $d
43  done
44  d=/usr/local/share/lisp
45  if [ -d $d ];
46  then
47  for f in $(find . -type f -name "*.core")
48  do echo "$(basename $f) -> $d"
49  install -C -m 755 $f $d
50  done fi$#)
51  (deploy (std prelude) #$mv -v .stash/{prelude.core,std.core} $PACKY_DIR$#))