diff --git a/Tuprules.tup b/Tuprules.tup index f94a6ab78..0a9f0596e 100644 --- a/Tuprules.tup +++ b/Tuprules.tup @@ -19,18 +19,25 @@ PUBLIC_BIN_DIR = $(PUBLIC_DIR)/bin/x86_64 DEPOT_PKG_DIR = $(DEPOT_DIR)/pkg PUBLIC_PKG_DIR = $(PUBLIC_DIR)/pkg -!strip_to_depot = |> ^ strip bin/%d^ strip -o %o %f |> $(DEPOT_BIN_DIR)/%d/@(DEPOT_VERSION)/%b $(DEPOT_DIR)/ +DEPOT_RAW_DIR = $(DEPOT_DIR)/raw +PUBLIC_RAW_DIR = $(PUBLIC_DIR)/raw + +!strip_to_depot = |> ^ strip bin/%d^ strip -o %o %f |> $(DEPOT_BIN_DIR)/%d/@(DEPOT_VERSION)/%b ERRATA_DIR = $(TUP_CWD)/errata !archives_to_depot = |> ^ varse %d archives^ tup varsed %f %o |> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/archives !runtime_to_depot = |> ^ validate %d runtime^ xmllint -schema $(ERRATA_DIR)/runtime.xsd %f > %o |> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/runtime $(DEPOT_DIR)/ +!raw_to_depot = |> ^ raw/%d/%f^ cp -r %f %o |> $(DEPOT_RAW_DIR)/%d/@(DEPOT_VERSION)/%f + ifdef DEPOT_KEY !depot_bin_tarball = |> ^o archive %d binary^ tar cfJ %o -C $(DEPOT_BIN_DIR)/%d . |> $(PUBLIC_BIN_DIR)/%d/@(DEPOT_VERSION).tar.xz -!depot_pkg_tarball = |> ^o archive %d package^ tar cfJ %o -C $(DEPOT_DIR)/pkg/%d . |> $(PUBLIC_DIR)/pkg/%d/@(DEPOT_VERSION).tar.xz +!depot_pkg_tarball = |> ^o archive %d package^ tar cfJ %o -C $(DEPOT_PKG_DIR)/%d . |> $(PUBLIC_PKG_DIR)/%d/@(DEPOT_VERSION).tar.xz + +!depot_raw_tarball = |> ^o archive %d raw^ tar cfJ %o -C $(DEPOT_RAW_DIR)/%d . |> $(PUBLIC_RAW_DIR)/%d/@(DEPOT_VERSION).tar.xz !public_signature = |> ^ sign %b^ gpg --detach-sign --digest-algo SHA256 --no-tty --local-user @(DEPOT_KEY) - < %f > %o |> %f.sig