summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-27 23:53:11 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-27 23:53:11 -0400
commitd969411b949cbddc4a6bd5bdb53f937e09d230f3 (patch)
tree02452ee8732d6ee754cd908ab8f70e2dcc922f96
parentf834317694cb3e2a450b70fa3a02597f3024f147 (diff)
git-urls
-rw-r--r--Makefile45
-rw-r--r--git-urls.txt10
-rw-r--r--slf4j-version.txt1
3 files changed, 40 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index ab7983d..349bd4c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,36 @@ top=$(shell pwd)
all: extract maven-svn-version.txt
+# We get slf4j from git because the official distribution tarball for 1.7.5 is
+# incomplete.
+
+download: \
+ upstream/apache-maven-$(shell cat apache-maven-version.txt) \
+ upstream/maven-svn \
+ upstream/slf4j-git \
+ upstream/plexus-compiler-git \
+ upstream/plexus-utils-git \
+ upstream/plexus-archiver-git \
+ upstream/plexus-classworlds-git \
+ upstream/plexus-io-git \
+ upstream/plexus-containers-git \
+ upstream/plexus-cipher-git \
+ upstream/plexus-interpolation-git \
+ upstream/plexus-pom-git
+
extract: \
build/maven \
build/maven-extras \
- build/slf4j
-download: \
- upstream/apache-maven-$(shell cat apache-maven-version.txt) \
- upstream/maven-svn
- upstream/slf4j-git
+ build/slf4j \
+ build/plexus-compiler \
+ build/plexus-utils \
+ build/plexus-archiver \
+ build/plexus-classworlds \
+ build/plexus-io \
+ build/plexus-containers \
+ build/plexus-cipher \
+ build/plexus-interpolation \
+ build/plexus-pom
# touch this file to trigger network updates
network:
@@ -61,16 +83,9 @@ build/maven-extras: upstream/maven-svn maven-svn-map.txt
################################################################################
-# We get slf4j from git because the official distribution tarball for 1.7.5 is
-# incomplete.
-upstream/slf4j-git: slf4j-version.txt network
- if ! [[ -d "$@/.git" ]]; then \
- git clone git://github.com/qos-ch/slf4j.git "$@"; \
- else \
- cd "$@" && git fetch --all -p; \
- fi
- cd "$@" && git checkout v_$$(cat "${top}/$<")
-build/slf4j: upstream/slf4j-git
+upstream/%-git: git-urls.txt
+ gitget checkout $$(grep $* $<) $@
+build/%: upstream/%-git
rm -rf $@
mkdir -p $@
lndir -silent "${top}/$<" "${top}/$@"
diff --git a/git-urls.txt b/git-urls.txt
new file mode 100644
index 0000000..5e38c5c
--- /dev/null
+++ b/git-urls.txt
@@ -0,0 +1,10 @@
+git://github.com/qos-ch/slf4j.git#tag=v_1.7.5
+git://github.com/sonatype/plexus-compiler.git#tag=plexus-compiler-2.3
+git://github.com/sonatype/plexus-utils.git#tag=plexus-utils-3.0.15
+git://github.com/sonatype/plexus-archiver.git#tag=plexus-archiver-2.4.3
+git://github.com/sonatype/plexus-classworlds.git#tag=plexus-classworlds-2.5.1
+git://github.com/sonatype/plexus-io.git#tag=plexus-io-2.0.9
+git://github.com/sonatype/plexus-containers.git#tag=plexus-containers-1.5.5
+git://github.com/sonatype/plexus-cipher.git#tag=plexus-cipher-1.7
+git://github.com/sonatype/plexus-interpolation.git#tag=plexus-interpolation-1.19
+git://github.com/sonatype/plexus-pom.git#tag=plexus-3.3.1
diff --git a/slf4j-version.txt b/slf4j-version.txt
deleted file mode 100644
index 6a126f4..0000000
--- a/slf4j-version.txt
+++ /dev/null
@@ -1 +0,0 @@
-1.7.5