File: publish-listings.sh

package info (click to toggle)
agda-stdlib 0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,768 kB
  • ctags: 1
  • sloc: haskell: 119; sh: 18; makefile: 15; lisp: 1
file content (22 lines) | stat: -rwxr-xr-x 451 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

cd /tmp
git clone git@github.com:agda/agda-stdlib.git
cd agda-stdlib
git checkout gh-pages
git merge master -m "[auto] merge master into gh-pages"
make listings

if [ "`git status --porcelain`" != "" ]; then
  echo "Updates:"
  git status --porcelain
  changed=`git status --porcelain | cut -c4-`
  git add --all -- $changed
  git commit -m "[auto] updated html listings"
  git push
else
  echo "No changes!"
fi

cd ..
rm -rf agda-stdlib