Collect <bin>, <pkg>, and <raw> groups at the depot

This commit is contained in:
Ehmry - 2019-07-10 15:50:35 +02:00
parent 69f92f19b9
commit a765a7b7bc
2 changed files with 8 additions and 8 deletions

View File

@ -28,8 +28,8 @@ SHORT_SUM = b2sum -l24
|> $(BIN_LISTING)
# Generate a listing of all binary archives
: $(DEPOT_DIR)/<packages> |> ^ generate package version sed script^ \
for d in `dirname %<packages> | tr ' ' '\n' | sort -u`; do \
: $(DEPOT_DIR)/<pkg> |> ^ generate package version sed script^ \
for d in `dirname %<pkg> | tr ' ' '\n' | sort -u`; do \
echo $d/`cat $d/.ARCHIVES $d/runtime | $(SHORT_SUM)` | awk -F '/' \
'{print "s|local/pkg/"$3"/current|@(PUBLIC_USER)/pkg/"$3"/"substr($5,0,6)"|"}' >> %o; \
done \
@ -63,8 +63,8 @@ SHORT_SUM = b2sum -l24
AWK_RUNTIME_PATH = awk -v RS=' ' -F '/' \
'/runtime/ {print " <pkg path=\"local/pkg/"$3"/current\"/>"}'
: $(DEPOT_DIR)/<packages> |> ^ generate local index^ \
: $(DEPOT_DIR)/<pkg> |> ^ generate local index^ \
echo '<index>' > %o; \
echo %<packages> | $(AWK_RUNTIME_PATH) | sort >> %o; \
echo %<pkg> | $(AWK_RUNTIME_PATH) | sort >> %o; \
echo '</index>' >> %o |> $(DEPOT_DIR)/index/@(SCULPT_VERSION)
# Generate the depot index file

View File

@ -105,11 +105,11 @@ AWK_LOCAL_ARCHIVES = awk -F '/' \
!collect_raw = |> ^ COLLECT %b^ \
cp %f %o \
|> $(RAW_DIR)/%b
|> $(RAW_DIR)/%b $(DEPOT_DIR)/<raw>
!collect_bin = |> ^ COLLECT %b^ \
@(TOOL_CHAIN_PREFIX)strip -o %o %f \
|> $(DEPOT_BIN_DIR)/$(BIN_NAME)/current/%b
|> $(DEPOT_BIN_DIR)/$(BIN_NAME)/current/%b $(DEPOT_DIR)/<bin>
!collect_pkg_runtime = | $(VERSIONS_SED_FILE) |> ^ package %f^ \
xmllint --noout -schema $(ERRATA_DIR)/runtime.xsd %f; \
@ -123,11 +123,11 @@ AWK_LOCAL_ARCHIVES = awk -F '/' \
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/runtime \
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives \
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/.ARCHIVES \
$(DEPOT_DIR)/<packages>
$(DEPOT_DIR)/<pkg>
!collect_pkg = |> ^ COLLECT %b^ cp %f %o \
|> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/%b \
$(DEPOT_DIR)/<packages>
$(DEPOT_DIR)/<pkg>
VERSIONS_SED_FILE = $(TUP_CWD)/versions.sed
PKG_SED_FILE = $(TUP_CWD)/pkg.sed