summaryrefslogtreecommitdiff
path: root/example_create.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example_create.sh')
-rwxr-xr-xexample_create.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/example_create.sh b/example_create.sh
index e4fc42a..d6e2a1c 100755
--- a/example_create.sh
+++ b/example_create.sh
@@ -1,4 +1,7 @@
#!/bin/sh
+
+# This script is ment to initialize your stagit website
+
# - Makes index for repositories in a single directory.
# - Makes static pages for each repository directory.
#
@@ -16,8 +19,16 @@
# - sh example_create.sh
# path must be absolute.
-reposdir="/var/www/domains/git.codemadness.nl/home/src"
-curdir="$(pwd)"
+
+# Repodir is where your git repos are located
+reposdir="/srv/git"
+
+#curdir is the current directory but I suggest switching it to your website directory
+# Current
+#curdir="$(pwd)"
+
+# Absolute
+curdir="/var/www/git/htmldir"
# make index.
stagit-index "${reposdir}/"*/ > "${curdir}/index.html"