Skip to content

Commit 6741cde

Browse files
committed
fix: spaces in script, feat: release script
1 parent 7c4bf7c commit 6741cde

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

release.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
git stash
6+
7+
boot production
8+
9+
git checkout master
10+
mv target/index.html ./index.html
11+
mv target/main.js ./main.js
12+
mv target/style.css ./style.css
13+
14+
echo "sphere.erdos.dev" > ./CNAME
15+
16+
git add index.html main.js style.css CNAME
17+
18+
git commit --amend -m "release"
19+
20+
git push origin master --force
21+
22+
git checkout development
23+
24+
git stash pop

src/erdos/lenart/lang.cljc

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
(defn tokenize-sentence [s]
2222
(assert (string? s))
23-
(seq (.split s " ")))
23+
(doall (keep not-empty (.split s " "))))
2424

2525
(defn parse-style-item [s]
2626
(assert (sequential? s))
@@ -117,8 +117,7 @@
117117
(concat (:pts mx))))))
118118

119119
(defn parse-book [ls]
120-
(let [ls (filter seq (map #(.trim %) (.split ls "\n")))
121-
xs (keep parse-sentence- ls)
120+
(let [xs (keep parse-sentence- (keep #(not-empty (.trim %)) (.split ls "\n")))
122121
error (some #(when (:error %) %) xs)
123122
xs (take-while (complement :error) xs)
124123
m (zipmap (map :id xs) xs)]

0 commit comments

Comments
 (0)