-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/05/2010 07:14 AM, David Farning wrote: > Luke,your getting started guide used a tarball as a starting point... > but several of the activities don't have an up to date tarball on > download.sl.o. > > It is possible to start packaging an activity by pointing to a > existing repository on git.sl.o rather than doing a pristine import.
I think it's possible to do this using upstream git on a branch and using tagging, but I'm not too clear on how to do that. Jonas, would you happen to know more about this? What I would advise is to create a upstream tarball using a get-orig-source rule like what I have attached. This rule attempts to checkout the upstream git source, looks for a git tag if present with the current version, and alternatively supports git snapshots. (version numbers like "87+git228cd65") - -- Luke Faraone http://luke.faraone.cc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkwyEUQACgkQtrC51grHAgbL7wCfTtrg6wVUYJFd4AJ2n8riuPZe yEMAn2TEdkSPhylOHDnPuitLSjSjwGc3 =c4dM -----END PGP SIGNATURE-----
# Rules for fetching the upstream tarball
# Define the git repo and package name.
UPSTREAM_GIT=git://example.com/your-git-repo-here
# TODO: Automatically figure this out from the package name
PACKAGE_NAME=sugar-SOMETHING-activity
# NB: Don't touch this unless it's broken.
CURRENT_TREEISH =$(shell dpkg-parsechangelog | sed -rne 's,^Version:
.*git.{9}([^-]+).*,\1,p')
CURVER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
SOURCE_DIR=$(PACKAGE_NAME)-$(CURVER)
TARBALL=$(PACKAGE_NAME)_$(CURVER).orig.tar.gz
$(SOURCE_DIR):
git clone $(UPSTREAM_GIT) $(SOURCE_DIR)
if [ x$(CURRENT_TREEISH) = x ]; then \
cd $(SOURCE_DIR) && git checkout v$(CURVER); \
else \
cd $(SOURCE_DIR) && git checkout $(CURRENT_TREEISH); \
fi
$(TARBALL): $(SOURCE_DIR)
tar czvf $(TARBALL) $(SOURCE_DIR)
get-orig-source: $(TARBALL)
rm -rf $(SOURCE_DIR) $(SOURCE_DIR).temp
git-get-orig-source.sig
Description: Binary data
-- Ubuntu-sugarteam mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-sugarteam
