Skip to content

Commit a957951

Browse files
committed
Add missing publish.sh example; rename examples.
Putting the file extension at the end helps editing/viewieng.
1 parent 381506a commit a957951

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ The output files will be added to the same directory for simpler hosting of
2929
all the things.
3030

3131
There are **two** important setup files:
32-
- `config.yaml` (see `config.yaml.example`)
33-
- `people.json` (see `people.json.example`)
32+
- `config.yaml` (see `config.example.yaml`)
33+
- `people.json` (see `people.example.json`)
3434

3535
Once those two files are configured to your contentment, see below.
3636

@@ -82,7 +82,7 @@ There are several more options available.
8282
8383
Please note, there are custom environment variables which may need to be setup.
8484
For examples of those, see the
85-
[publish.sh.example](publish.sh.example).
85+
[publish.example.sh](publish.example.sh).
8686
8787
## Web-based editor
8888
@@ -102,7 +102,7 @@ For this to work you'll need to put `people.json` in your `www/` folder.
102102
## Wrapping bash scripts
103103

104104
If you're on a machine that has bash available, there are a couple useful tools
105-
in the `scripts/` folder. To configure them, copy the `publishing.cfg.example`
105+
in the `scripts/` folder. To configure them, copy the `publishing.example.cfg`
106106
to `publishing.cfg`, make your changes, and then run the scripts (which wrap
107107
the node code).
108108
File renamed without changes.
File renamed without changes.

publish.example.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Generates minutes for the directory given
4+
5+
echo "Generating minutes and social media posts for $1"
6+
DATESTR=`echo $1 | cut -f2 -d/`
7+
MESSAGE="Add text minutes and audio logs for $DATESTR telecon."
8+
9+
# Generate minutes
10+
nodejs index.js -d $1 -m -i
11+
git add $1/irc.log $1/index.html $1/audio.ogg
12+
git commit $1/irc.log $1/index.html $1/audio.ogg $1/../index.html -m "$MESSAGE"
13+
git push
File renamed without changes.

0 commit comments

Comments
 (0)