]> git.armaanb.net Git - stagit.git/blobdiff - example.sh
fix error in "code cleanup" commit 9328d2690e118127bcaa5cf9f665d8e7711f7a03
[stagit.git] / example.sh
index 7727f26fc8479f8af2b20e079b34b522aeb23c74..6f4ea2dd294bd7be48180c3f765099d0bab1d0cb 100644 (file)
@@ -17,17 +17,17 @@ curdir=$(pwd)
 
 # make index.
 cd "${reposdir}"
-find . -maxdepth 1 -type d | grep -v "^.$" | xargs stagit-index > "${curdir}/index.html"
+find . -maxdepth 1 -type d | grep -v "^.$" | sort | xargs stagit-index > "${curdir}/index.html"
 
 # make files per repo.
 cd "${reposdir}"
-find . -maxdepth 1 -type d | grep -v "^.$" | while read -r dir; do
+find . -maxdepth 1 -type d | grep -v "^.$" | sort | while read -r dir; do
        d=$(basename "${dir}")
        printf "%s... " "${d}"
 
        mkdir -p "${curdir}/${d}"
        cd "${curdir}/${d}"
-       stagit "${reposdir}/${d}"
+       stagit -c ".cache" "${reposdir}/${d}"
 
        # symlinks
        ln -sf log.html index.html