-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·38 lines (32 loc) · 718 Bytes
/
build.sh
File metadata and controls
executable file
·38 lines (32 loc) · 718 Bytes
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
#!/bin/sh -eu
prefix() {
tmpfile=$(mktemp)
cat - $1 > $tmpfile
mv $tmpfile $1
}
# Pull some files from other repos
wget https://github.com/ppb/pursuedpybear/raw/HEAD/CONTRIBUTING.md -O contributing.md
prefix contributing.md <<EOF
---
layout: default
title: How to Contribute
---
EOF
wget https://github.com/ppb/pursuedpybear/raw/HEAD/CONTRIBUTORS.md -O contributors.md
prefix contributors.md <<EOF
---
layout: default
title: Contributors
---
EOF
wget https://github.com/ppb/.github/raw/HEAD/CODE_OF_CONDUCT.md -O coc.md
prefix coc.md <<EOF
---
layout: default
title: Code of Conduct
---
EOF
# Do the build
jekyll build
# Copy some Netlify stuff to the output directory
cp _redirects _site/_redirects