diff options
author | Shipwreckt <me@shipwreckt.co.uk> | 2025-02-23 08:20:34 +0000 |
---|---|---|
committer | Shipwreckt <me@shipwreckt.co.uk> | 2025-02-23 08:20:34 +0000 |
commit | 8f4467c17509acf9a58f7b0b834951d604a64b36 (patch) | |
tree | c02350556ebae425f5dbc6d4993048709ff74a57 /example_create.sh | |
parent | 643223d169f1d9b53e9080ed78b13868a18d7973 (diff) |
small changes
Diffstat (limited to 'example_create.sh')
-rwxr-xr-x | example_create.sh | 15 |
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" |