]> njoseph.me Git - babashka-scripts.git/commitdiff
Remove .clj suffix for scripts
authorJoseph Nuthalapati <njoseph@riseup.net>
Fri, 30 Apr 2021 08:46:12 +0000 (14:16 +0530)
committerJoseph Nuthalapati <njoseph@riseup.net>
Fri, 30 Apr 2021 08:46:12 +0000 (14:16 +0530)
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
README.md
ebook-to-audio-book [moved from ebook-to-audio-book.clj with 97% similarity]
git-pull-all [moved from git-pull-all.clj with 97% similarity]
install-deb [new file with mode: 0755]
install-deb-gh [new file with mode: 0755]
update-babashka [moved from update-babashka.clj with 98% similarity]

index a5c24b4c1f7fb6e4dd0669dae6e606fe512ba42f..9986907c7521e7861d9ce5d546e4c96d77c38763 100644 (file)
--- a/README.md
+++ b/README.md
@@ -28,14 +28,6 @@ Some useful aliases and functions.
 ``` sh
 alias gup="bb -e '(git-pull-rebase-branch)'"
 alias bbr="rlwrap bb --repl"
-
-function bb-wrap {
-  expr="($1 \"$2\")"
-  bb -e $expr
-}
-
-alias install-deb="bb-wrap install-deb"
-alias install-deb-gh="bb-wrap install-deb-from-GitHub"
 ```
 
 ## Organization
similarity index 97%
rename from ebook-to-audio-book.clj
rename to ebook-to-audio-book
index 48eb115c18717fe9311f6cdfe865ca83d11931d8..ec12e96e479cbba58baaa0ccc00143224e93f095 100755 (executable)
@@ -1,4 +1,5 @@
 #! /usr/bin/env bb
+; -*- mode: clojure -*-
 
 ; A utility to listen to your ebooks using TTS programs
 
similarity index 97%
rename from git-pull-all.clj
rename to git-pull-all
index 647db21fd52cd8f487bf332d06f3c14f4cb7e451..6b0de16a85bcc08c28dcf4af335c3902a35fa56b 100755 (executable)
@@ -1,4 +1,5 @@
 #! /usr/bin/env bb
+; -*- mode: clojure -*-
 
 ; Runs `git pull` on all the git repositories in a directory
 
diff --git a/install-deb b/install-deb
new file mode 100755 (executable)
index 0000000..2aebfc8
--- /dev/null
@@ -0,0 +1,8 @@
+#! /usr/bin/env bb
+; -*- mode: clojure -*-
+
+; A utility to install a deb package from a URL
+
+(require '[lib :refer [unixify]] '[utils :refer [install-deb]])
+
+(unixify install-deb)
diff --git a/install-deb-gh b/install-deb-gh
new file mode 100755 (executable)
index 0000000..3aa8ef1
--- /dev/null
@@ -0,0 +1,8 @@
+#! /usr/bin/env bb
+; -*- mode: clojure -*-
+
+; A utility to install a deb package from a GitHub URL
+
+(require '[lib :refer [unixify]] '[utils :refer [install-deb-from-GitHub]])
+
+(unixify install-deb-from-GitHub)
similarity index 98%
rename from update-babashka.clj
rename to update-babashka
index c122fb4eb8f532607e513154e7d9a1a6a3de9d8a..bf4bb8e47aec69c32d291cd8a3e414b3760e7966 100755 (executable)
@@ -1,4 +1,5 @@
 #! /usr/bin/env bb
+; -*- mode: clojure -*-
 
 (require '[cheshire.core :as json]
          '[org.httpkit.client :as http]