git ssb

0+

cel / gitfeed



Commit a979b4bd9ced3058c1add1818513541e6955cc66

Detect script location

Charles Lehner committed on 6/14/2015, 3:58:11 AM
Parent: 3077b00cc9073a00c865eee83fdc91b2f77acacb

Files changed

feed.shchanged
feed.shView
@@ -1,8 +1,10 @@
11 #!/bin/sh
22
33 test -z "$SITE_URL" && echo 'Define the SITE_URL env variable' >&2 && exit 1
44
5 +dir=$(dirname $([ -L $0 ] && readlink -f $0 || echo $0))
6 +
57 hash uuidgen >&2 || uuidgen() {
68 cat /proc/sys/kernel/random/uuid 2>&- ||\ # Linux
79 cat /compat/linux/proc/sys/kernel/random/uuid 2>&- ||\ # FreeBSD
810 python -c 'import uuid; print uuid.uuid1()'
@@ -36,9 +38,9 @@
3638 content $content_delim
3739 commit %H
3840
3941 %B
40-stat $content_delim" $@ | awk -f xml.awk -v site="$SITE_URL"
42 +stat $content_delim" $@ | awk -f "$dir/xml.awk" -v site="$SITE_URL"
4143
4244 cat <<EOF
4345 </feed>
4446

Built with git-ssb-web