Last active
February 13, 2016 02:07
-
-
Save cm-igarashi-ryosuke/f19273b09bd765c9419d to your computer and use it in GitHub Desktop.
GitHubのリポジトリをクローンして、GitBookコマンドでPDFファイルを作成する
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
#!/bin/sh | |
# GitHubのリポジトリパス | |
REPOSITORY_PATH=git@github.com:xxx/yyy | |
# リポジトリ名 | |
REPOSITORY_NAME=yyy | |
# 出力ファイル名 | |
OUTPUT_FILENAME=SPEC.pdf | |
# リポジトリをクローン | |
git clone $REPOSITORY_PATH | |
# Gitbookを使ってPDFを作成 | |
gitbook pdf ./$REPOSITORY_NAME $OUTPUT_FILENAME | |
# BackLogにファイルアップロード | |
#(別のシェルを呼ぶ)引数:アップロードするファイル名 | |
./backlog_upload.sh $OUTPUT_FILENAME | |
# リポジトリのクローンを削除 | |
rm -rf $REPOSITORY_NAME | |
# 出力ファイルを削除 | |
rm $OUTPUT_FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment