summaryrefslogtreecommitdiff
blob: 75646fcfe223330e7fb55111a7332bb543c9c9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
# Copyright (C) 2009 Sebastian Pipping <sebastian@pipping.org>
# Licensed under GPL 2 or later

# CONFIG
SCRIPT_PWD=/home/sping/__playground/overlays-xml-specification/
SCRIPT_TO_CALL=./merge-gitosis-conf-into-repositories-xml.py
REPOSITORIES_XML_LOCATION=repositories.xml


echo ==============================================================
GITOSIS_CONF_TEMPFILE=$(mktemp)
git --bare show HEAD:gitosis.conf > "${GITOSIS_CONF_TEMPFILE}"
(
	echo \# cd \"${SCRIPT_PWD}\"
	cd "${SCRIPT_PWD}" || exit 1

	echo \# \"${SCRIPT_TO_CALL}\" \"${GITOSIS_CONF_TEMPFILE}\" \
			\"${REPOSITORIES_XML_LOCATION}\"
	"${SCRIPT_TO_CALL}" \
			"${GITOSIS_CONF_TEMPFILE}" \
			"${REPOSITORIES_XML_LOCATION}"
	res=$?
	echo "--> ${res}"
)
rm "${GITOSIS_CONF_TEMPFILE}"
echo ==============================================================