tangled
alpha
login
or
join now
algmyr.se
/
vimblog
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
Update make scripts.
algmyr.se
9 months ago
0a060273
dce48d28
+4
-2
2 changed files
expand all
collapse all
unified
split
make.sh
make_index.sh
+3
-1
make.sh
···
1
1
function last_edited_date() {
2
2
-
stat -c %y "$1" | cut -d' ' -f1
2
2
+
jj log "$1" \
3
3
+
-T 'self.committer().timestamp().format("%Y-%m-%d")' \
4
4
+
--no-graph -n 1
3
5
}
4
6
5
7
function preprocessing() {
+1
-1
make_index.sh
···
13
13
title="$(grep '<title>' "output/$f" | perl -p -e "s#.*<title>(.*)</title>#\1#")"
14
14
last="$(grep -oE 'Last modified: [0-9\-]+' "output/$f")"
15
15
echo "* [$title]($f) ($last)"
16
16
-
done | sort
16
16
+
done | sort -t'(' -k 3
17
17
}
18
18
19
19
gen | pandoc_cmd --metadata footer="Generated at: $(date +%Y-%m-%d)" -o "$1"