45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
include_rules
|
|
|
|
ifndef SCULPT_VERSION
|
|
error CONFIG_SCULPT_VERSION is undefined
|
|
endif
|
|
|
|
: $(DEPOT_DIR)/<bin-archives> $(DEPOT_DIR)/<raw> |> \
|
|
for f in %<bin-archives>; do tail -n1 $f >> %o; done; \
|
|
for f in %<raw>; do echo $f | awk -F / '{print "local/raw/"$4"/"$5}' - >> %o; done; \
|
|
|> $(BIN_LISTING)
|
|
# Generate a listing of all binary archives
|
|
|
|
: $(DEPOT_DIR)/<pkg> |> \
|
|
echo PUBLIC_USER=@(PUBLIC_USER) >> %o; \
|
|
echo PUBLIC_KEY=@(PUBLIC_KEY) >> %o; \
|
|
for f in %<pkg>; \
|
|
do \
|
|
b2sum -l 24 $f | awk -f errata/pkg.mk.awk >> %o; \
|
|
done; \
|
|
|> Makefile
|
|
# Generate the makefile for creating signed tarballs
|
|
|
|
DEPOT_INDEX_FILE = $(DEPOT_DIR)/index/@(SCULPT_VERSION)
|
|
|
|
ifneq (@(DEPOT_USER),local)
|
|
: index.xml |> tup varsed %f - | xmllint - > %o |> $(DEPOT_INDEX_FILE) {index}
|
|
else
|
|
: $(DEPOT_DIR)/<runtime> $(DEPOT_DIR)/<libretro-runtimes> |> ^ generate index^ \
|
|
echo '<index>' > %o; \
|
|
echo ' <index name="Libretro">' >> %o; \
|
|
echo %<libretro-runtimes> | tr ' ' '\n' | sort |\
|
|
sed \
|
|
-e 's|depot/| <pkg path="|' \
|
|
-e 's|runtime|"/>|' \
|
|
- >> %o; \
|
|
echo ' </index>' >> %o; \
|
|
echo %<runtime> | tr ' ' '\n' | sort |\
|
|
sed \
|
|
-e 's|depot/| <pkg path="|' \
|
|
-e 's|runtime|"/>|' \
|
|
- >> %o; \
|
|
echo '</index>' >> %o |> $(DEPOT_INDEX_FILE) {index}
|
|
endif
|
|
# Generate the depot index file
|