Skip to content

Commit

Permalink
feat: localhost.path.show. removed nostromo
Browse files Browse the repository at this point in the history
  • Loading branch information
0b1kn00b committed Apr 20, 2024
1 parent 5eca2fb commit 88a7128
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 37 deletions.
20 changes: 7 additions & 13 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
PRJ_DIR=$(pwd)
#echo "${PRJ_DIR}"
export BERTHA_PATH="${PRJ_DIR}"
export BERTHA_PATH="$(pwd)"

dotenv .env.checked_in

PRJ_DIR=$(pwd)
local o="${PRJ_DIR}/.local/share/bertha/o/"
local prj_dir=$(pwd)
local o="${prj_dir}/.local/share/bertha/o/"
local obin="${o}/bin"
mkdir -p "$obin";
mkdir -p "$o/opt";
export PATH="${obin}":"${o}/var/clyde/inst/bin":"${o}/opt/haxe/":"${o}/opt/neko/":"${o}/opt/hashlink/":${PATH}
export BERTHA_PATH="${PRJ_DIR}"
export BERTHA_PATH="${prj_dir}"

layout python3
# 2>&1 >/dev/null
pip install -r requirements.txt >/dev/null
virtualenv ${PRJ_DIR}/.local/share/bertha/o/bertha_pyenv >/dev/null
virtualenv ${prj_dir}/.local/share/bertha/o/bertha_pyenv >/dev/null
#install-release config --path="$BERTHA_PATH/.local/share/bertha/o" >/dev/null

# echo $PRJ_DIR
# echo $prj_dir
if (! test -f "$obin/eget"); then
curl -o eget.sh https://zyedidia.github.io/eget.sh
sh eget.sh
mv $PRJ_DIR/eget $obin
mv $prj_dir/eget $obin
rm eget.sh
fi

Expand Down Expand Up @@ -51,10 +49,6 @@ if (! test -f "$obin/clyde"); then
clyde install mkcert 2>&1 >/dev/null
fi

if (! test -f "$obin/nostromo"); then
eget https://github.com/pokanop/nostromo/ --to ${obin}
fi

if (! test -f "$obin/aim"); then
eget https://github.com/mihaigalos/aim/ --asset="gnu" --to ${obin}
fi
Expand Down
12 changes: 6 additions & 6 deletions .local/share/bertha/i/src/main/bb/bertha/util.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns bertha.util
(
:require [cheshire.core :refer :all]
:require [babashka.fs :as fs]
)
)
(:require [cheshire.core :refer :all]
:require [babashka.fs :as fs]
:require [clojure.string :as str]
:require [clojure.java.io :as io]
))

;; (require [cheshire.core :refer :all])
;; (require '[com.velisco/tagged :as tag])
Expand All @@ -13,7 +13,7 @@
(defn localhost.os.name [] (System/getProperty "os.name" ))
(defn bertha.path [] (System/getenv "BERTHA_PATH"))
(defn bertha.home [] (System/getenv "BERTHA_HOME"))

(defn localhost.path.show [] (str/join "\n" (str/split (System/getenv "PATH") #":")))
(defn device.info []
{:arch (localhost.os.arch) :name (localhost.os.name)}
)
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ Below invocation should make available the following binaries.
3) [haxe](haxe.org) from [here](https://github.com/HaxeFoundation/haxe)
3) [babashka](babashka.org) from [here](https://github.com/babashka/babashka)
4) [rclone](rclone.org) from [here](https://github.com/rclone/rclone)
5) [nostromo](https://github.com/pokanop/nostromo/)
6) [clyde](https://github.com/agateau/clyde)
7) [ansible](https://ansible.readthedocs.io)
8) [xh](https://github.com/ducaale/xh)
9) [aim](https://github.com/mihaigalos/aim/)
10) [lefthook](https://github.com/evilmartians/lefthook)
11) [xc](https://github.com/joerdav/xc/)
12) [vagrant](https://github.com/hashicorp/vagrant/)
5) [clyde](https://github.com/agateau/clyde)
6) [ansible](https://ansible.readthedocs.io)
7) [xh](https://github.com/ducaale/xh)
8) [aim](https://github.com/mihaigalos/aim/)
9) [lefthook](https://github.com/evilmartians/lefthook)
10) [xc](https://github.com/joerdav/xc/)
11) [vagrant](https://github.com/hashicorp/vagrant/)


# Support
Expand Down
19 changes: 9 additions & 10 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
]
:deps {ohmrun/bertha {:local/root "."}}
:tasks
{
:requires ([bertha.util])
localhost.os.arch (println (bertha.util/localhost.os.arch))
localhost.os.name (println (bertha.util/localhost.os.name))
namespaces (print (all-ns))
device.info (println (bertha.util/device.info))
bertha.path (println (bertha.util/bertha.path))
bertha.install bertha.install/main
bertha.softlink (bertha.util/bertha.softlink)
}
{:requires ([bertha.util])
localhost.os.arch (println (bertha.util/localhost.os.arch))
localhost.os.name (println (bertha.util/localhost.os.name))
localhost.path.show (println (bertha.util/localhost.path.show))
namespaces (print (all-ns))
device.info (println (bertha.util/device.info))
bertha.path (println (bertha.util/bertha.path))
bertha.install bertha.install/main
bertha.softlink (bertha.util/bertha.softlink)}
}
;; java.nio.file.Files/createSymbolicLink

0 comments on commit 88a7128

Please sign in to comment.