diff options
author | Colin Walters <walters@verbum.org> | 2012-08-17 20:51:36 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-08-19 15:05:01 -0400 |
commit | a571c83d82d4f99ae4027d96c4429761bf2e2d43 (patch) | |
tree | fb30f502f849dd92b920b04bcbf22b5f2050a4b9 | |
parent | f5cf21e471735c7b5fd266945019fd38e44d7445 (diff) | |
download | ostree-a571c83d82d4f99ae4027d96c4429761bf2e2d43.tar.gz |
embedded-dependencies: Fix ACLOCAL_FLAGS, update for libgsystem
* Handle the libgsystem submodule
* ACLOCAL_FLAGS was broken
* Add srpm-embedded
-rw-r--r-- | Makefile.am | 33 | ||||
-rw-r--r-- | embedded-dependencies/Makefile.am | 2 | ||||
-rw-r--r-- | embedded-dependencies/README | 4 |
3 files changed, 30 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am index 9e2fdee1..d3d3a7e8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -122,11 +122,32 @@ endif release-tag: git tag -m "Release $(VERSION)" v$(VERSION) -embed_dependency=tar -C $(srcdir) --append --exclude='.git/*' --transform='s,^embedded-dependencies/,ostree-embeddeps-$(VERSION)/embedded-dependencies/,' --file=ostree-embeddeps-$(VERSION).tar.tmp +embed_dependency=tar -C $(srcdir) --append --exclude='.git/*' --transform="s,^embedded-dependencies/,ostree-embeddeps-$${GITVERSION}/embedded-dependencies/," --file=$${TARFILE_TMP} + +git_version_rpm = $$(git describe | sed -e 's,-,\.,g' -e 's,^v,,') release-tarball-embedded: - (cd $(srcdir); git archive --format=tar --prefix=ostree-embeddeps-$(VERSION)/ HEAD) > ostree-embeddeps-$(VERSION).tar.tmp - $(embed_dependency) embedded-dependencies/glib - $(embed_dependency) embedded-dependencies/libsoup - mv ostree-embeddeps-$(VERSION).tar{.tmp,} - gzip -f ostree-embeddeps-$(VERSION).tar + set -x; \ + GITVERSION=$(git_version_rpm); export GITVERSION; \ + TARFILE_TMP=ostree-embeddeps-$${GITVERSION}.tar.tmp; \ + REV=$$(git rev-parse HEAD); \ + echo "Archiving ostree at $${REV}"; \ + (cd $(srcdir); git archive --format=tar --prefix=ostree-embeddeps-$${GITVERSION}/ $${REV}) > $${TARFILE_TMP}; \ + (cd $$(git rev-parse --show-toplevel); git submodule status) | while read line; do \ + rev=$$(echo $$line | cut -f 1 -d ' '); path=$$(echo $$line | cut -f 2 -d ' '); \ + echo "Archiving $${path} at $${rev}"; \ + (cd $(srcdir)/$$path; git archive --format=tar --prefix=ostree-embeddeps-$${GITVERSION}/$$path/ $${rev}) > submodule.tar; \ + tar -A -f $${TARFILE_TMP} submodule.tar; \ + rm submodule.tar; \ + done; \ + echo "Archiving glib"; \ + $(embed_dependency) embedded-dependencies/glib; \ + echo "Archiving libsoup"; \ + $(embed_dependency) embedded-dependencies/libsoup; \ + mv ostree-embeddeps-$${GITVERSION}.tar{.tmp,}; \ + gzip -f ostree-embeddeps-$${GITVERSION}.tar + +srpm-embedded: + GITVERSION=$(git_version_rpm); export GITVERSION; \ + (sed -e "s,^Version:.*,Version: $${GITVERSION}," $(srcdir)/packages/ostree.spec.in) > ostree.spec + $(srcdir)/packages/rpmbuild-cwd -bs ostree.spec diff --git a/embedded-dependencies/Makefile.am b/embedded-dependencies/Makefile.am index 3d2d60bf..27bdfa83 100644 --- a/embedded-dependencies/Makefile.am +++ b/embedded-dependencies/Makefile.am @@ -29,7 +29,7 @@ build_environment = PATH=$${builddir}/EMBEDDEPS/bin$${PATH:+:$$PATH} \ C_INCLUDE_PATH="$${builddir}/EMBEDDEPS/include$${C_INCLUDE_PATH:+:$$C_INCLUDE_PATH}" \ LDFLAGS="-L$${builddir}/EMBEDDEPS/lib$${LDFLAGS:+:$$LDFLAGS}" \ ACLOCAL_PATH="$${builddir}/EMBEDDEPS/share/aclocal$${ACLOCAL_PATH:+:$$ACLOCAL_PATH}" \ - ACLOCAL_FLAGS="-I $${builddir}/EMBEDDEPS/share/aclocal$${ACLOCAL_FLAGS:+:$$ACLOCAL_FLAGS}" \ + ACLOCAL_FLAGS="-I $${builddir}/EMBEDDEPS/share/aclocal $${ACLOCAL_FLAGS}" \ PKG_CONFIG_PATH="$${builddir}/EMBEDDEPS/lib/pkgconfig$${PKG_CONFIG_PATH:+:$$PKG_CONFIG_PATH}" # aclocal aborts if the path doesn't exist yet. Lame. Let's also diff --git a/embedded-dependencies/README b/embedded-dependencies/README index a76b0f6a..9c321c00 100644 --- a/embedded-dependencies/README +++ b/embedded-dependencies/README @@ -8,12 +8,12 @@ can then be installed on older operating systems. To create one, use: $ cd embedded-dependencies -$ make -f Makefile.bootstrap embedded-glib-download +$ make -f Makefile.bootstrap embedded-deps-download $ cd .. $ make release-tarball-embedded To build it: -$ ./configure --enable-embedded-glib ... +$ ./configure --enable-embedded-dependencies ... as usual. |