mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 17:56:16 +00:00
implement multilanguage new improved clients list page update history and statistics in the "about" page add "Some things you need to know" page add "Support Bitcoin" page add a contextual presentation for each category of users (individuals, organizations, developers and enthusiasts) add a short and concise "how it works" page add a "vocabulary" page for Bitcoin technical words definitions give more visibility for the foundation new website design and layout
43 lines
771 B
Bash
Executable file
43 lines
771 B
Bash
Executable file
#!/bin/bash
|
|
|
|
REPO=git://github.com/bitcoin/bitcoin.org.git
|
|
DESTREPO=git@github.com:bitcoin/bitcoin.github.com.git
|
|
|
|
WORKDIR=`mktemp -d`
|
|
DESTDIR=`mktemp -d`
|
|
|
|
# Stop script in case a single command fails
|
|
set -e
|
|
|
|
# Cleanup on EXIT (even when a command fails)
|
|
trap "rm -rf $WORKDIR $DESTDIR; exit 1" EXIT
|
|
|
|
export PATH=/var/lib/gems/1.8/bin/:$PATH
|
|
|
|
git clone $REPO $WORKDIR
|
|
|
|
cd $WORKDIR
|
|
|
|
git pull origin master
|
|
git reset --hard
|
|
git clean -x -f -d
|
|
mkdir _site/
|
|
|
|
jekyll
|
|
|
|
git clone $DESTREPO $DESTDIR
|
|
|
|
COMMITMSG="jekyll build on `date -R` from `git log --oneline|head -n1`"
|
|
|
|
cd $DESTDIR
|
|
|
|
git pull origin master
|
|
git reset --hard
|
|
git clean -x -f -d
|
|
|
|
rsync --exclude=.git/ --delete -a $WORKDIR/_site/ $DESTDIR
|
|
|
|
git add .
|
|
git commit -a -m "$COMMITMSG"
|
|
git push origin master
|
|
|