-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·51 lines (47 loc) · 1.07 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·51 lines (47 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
echo ">> root .md to .html"
list=$(ls -r ./*.md)
for file in $list ; do
date=$(date -r ${file} +%D)
file=${file:2}
file=${file%.*}
echo "$file"
: 'if [ $file == "spb2023" ] || [ $file == "firehouse" ]; then
bkg="#d8d8d8"
font="#000000"
link="#b2ffff"
hover="#EC6F2B"
fontsize=0.96em
else
bkg="#ffdede"
font="#333"
link="#333"
hover="#555"
fontsize=0.8em
fi'
target=${file}.html
cat head.htm_ > ${target}
cmark --unsafe ${file}.md >> ${target}
cat foot.htm_ >> ${target}
sed -i '' 's|BKG_COLOR|'$bkg'|g' ${target}
sed -i '' 's|FONT_COLOR|'$font'|g' ${target}
sed -i '' 's|LINK_COLOR|'$link'|g' ${target}
sed -i '' 's|HOVER_COLOR|'$hover'|g' ${target}
sed -i '' 's|FONT_SIZE|'$fontsize'|g' ${target}
sed -i '' -e 's#DATE#'$date'#g' ${target}
done
: 'alias change='cd tabs'
change
echo "entering tabs folder"
./build.sh
alias change='cd ..'
change
alias change='cd images'
change
echo "entering images folder"
./build.sh
alias change='cd ..'
change
alias change='cd beloved'
change
echo "entering beloved"
./build.sh '