summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLars Hjemli2007-09-03 22:42:54 +0200
committerLars Hjemli2007-09-03 22:49:19 +0200
commit95eaf2735efffae533ae3b4133bc01b6eb303d5a (patch)
tree0e3a3b53fc643c2b7809eadd85bbd90f9257040a
parente8920b52629911f92dbbecdb1d7675760e7a781e (diff)
downloadcgit-95eaf2735efffae533ae3b4133bc01b6eb303d5a.tar
cgit-95eaf2735efffae533ae3b4133bc01b6eb303d5a.tar.gz
cgit-95eaf2735efffae533ae3b4133bc01b6eb303d5a.zip
Makefile: add target "get-git"
The new target downloads a suitable git.git tarball from kernel.org and unpacks it in the git directory. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 12fd652..fcbe3e4 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ CGIT_SCRIPT_PATH = /var/www/htdocs/cgit
CGIT_CONFIG = /etc/cgitrc
CACHE_ROOT = /var/cache/cgit
SHA1_HEADER = <openssl/sha.h>
+GIT_VER = 1.5.2
+GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2
#
# Let the user override the above settings.
@@ -17,7 +19,7 @@ OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
ui-snapshot.o ui-blob.o ui-tag.o
-.PHONY: all git install clean distclean force-version
+.PHONY: all git install clean distclean force-version get-git
all: cgit git
@@ -64,3 +66,6 @@ clean:
distclean: clean
git clean -d -x
cd git && git clean -d -x
+
+get-git:
+ curl $(GIT_URL) | tar -xj && rm -rf git && mv git-$(GIT_VER) git
'#n163'>163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 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