-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ Guillaume Bury <[email protected]> | |
|
||
* link:dev[] | ||
* link:0.1[] | ||
|
||
* link:0.2[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash -e | ||
|
||
# Get current verison number | ||
version=`cat VERSION` | ||
|
||
# Enssure we are on master branch | ||
git checkout master | ||
|
||
# Generate documentation | ||
(cd src && make doc) | ||
(cd doc && asciidoc index.txt) | ||
|
||
# Checkout gh-pages | ||
git checkout gh-pages | ||
git pull | ||
|
||
# Create doc folder if it does not exists | ||
mkdir -p ./$version | ||
|
||
# Copy doc to the right locations | ||
cp doc/index.html ./ | ||
cp src/dolmen.docdir/* ./$version/ | ||
|
||
# Add potentially new pages | ||
git add ./$version/* | ||
git add ./index.html | ||
|
||
# Commit it all & push | ||
git commit -m "Doc release $version" | ||
git push | ||
|
||
# Get back to master branch | ||
git checkout master | ||
|