stagitbuild

builder-manager for stagit pages
git clone git://git.ckyln.com/stagitbuild.git
Log | Files | Refs | README | LICENSE

commit 448d419c73515eb688512f3ba2db9a11130fb3b1
parent 65b8ddcf24a46d0f2a96732ee46a141c4e4ab75f
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat,  5 Oct 2019 23:27:26 +0300

add option to create raw directories

Diffstat:
Mstagitbuild | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/stagitbuild b/stagitbuild @@ -47,6 +47,10 @@ LOGO="" ## archives from the tags of your repository #ARCHIVE="yes" +## Uncomment this if you want stagitbuild to create +## raw files of upstream +#RAW="yes" + EOF cat <<EOF Configuration file is created to $1 @@ -90,6 +94,13 @@ gitarchive() { fi } +createraw() { + mkdir -p ${DEST}/raw/${1} + cd ${DEST}/raw/${1} + git archive --remote=${SRC}/${1}.git HEAD | tar -x + +} + buildgit() { for repo in ${GITREPOS}; do mkdir ${DEST}/${repo} 2>/dev/null @@ -97,6 +108,7 @@ buildgit() { stagit ${SRC}/${repo}.git stylepage $PWD [ "$ARCHIVE" = "yes" ] && gitarchive ${repo} + [ "$RAW" = "yes" ] && createraw ${repo} done cd $DEST stagit-index ${repogit} > $DEST/index.html