about summary refs log tree commit diff stats
path: root/tools/conf/srv/gitolite/deploy-web-doc
diff options
context:
space:
mode:
authorpunk <punk@libernaut>2021-04-29 16:11:04 +0100
committerpunk <punk@libernaut>2021-04-29 16:11:25 +0100
commit9bef2e2b7ea351b6b1cb490597356677db61ff34 (patch)
treec36ae24aa3c36f6c19284c7d4da7c25a620bfabf /tools/conf/srv/gitolite/deploy-web-doc
parent6b5cf63d1987889e272643bf7eeb7725df856d11 (diff)
parent5e601f7ee14830ef645ee3d3b1bcdce7450a5ce3 (diff)
downloaddoc-master.tar.gz
release 0.7.2 HEAD master
Diffstat (limited to 'tools/conf/srv/gitolite/deploy-web-doc')
-rwxr-xr-xtools/conf/srv/gitolite/deploy-web-doc42
1 files changed, 0 insertions, 42 deletions
diff --git a/tools/conf/srv/gitolite/deploy-web-doc b/tools/conf/srv/gitolite/deploy-web-doc
deleted file mode 100755
index b836515..0000000
--- a/tools/conf/srv/gitolite/deploy-web-doc
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-######################################################################
-#
-# Put this file in your gitolite-admin;
-# ~/gitolite-admin/local/hooks/repo-specific/hook-deploy-web
-#
-# set host to empty to create package for each push
-# or set remote host to create package based on last deployed push
-# host="https://doc.localhost"
-host=""
-# set name of witch branch should be deployed
-branch_to_deploy="deploy_branch"
-
-######################################################################
-
-
-url="$host/.last_deploy"
-source /srv/gitolite/deploy/hook.sh
-read oldrev newrev refname
-push_branch=$(git rev-parse --symbolic --abbrev-ref $refname)
-
-#SCRIPT_VARS=$(set)
-#echo "project: $PROJECT"
-#echo "local dir: $PWD" &gt; /srv/gitolite/deploy/${GL_REPO}
-#echo "${SCRIPT_VARS}" &gt;&gt; /srv/gitolite/deploy/${GL_REPO}
-
-if [[ $push_branch = $branch_to_deploy  ]]; then
-
-    # if host empty we make local tracking
-    if [[ $host = "" ]]; then
-        if [[ $(is_initial ${GL_REPO}) = "true" ]]; then
-            oldrev="initial"
-        fi
-    else
-        if [[ ! $(valid_url $url) = "true" ]]; then
-            echo "Deploy: set $url on remote to start creating packages"
-            exit 1
-        fi
-        oldrev=$(get_remote_rev $url)
-    fi
-    create_package ${GL_REPO} ${PWD} ${oldrev} ${newrev} "deploy-web.sh"
-fi
ef='#n195'>195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268