@ 261104.1

260827.1.1 · c276ac79f4257817203f72311ffb1386ab3ddb35

build: Create archive script

Move the code for creating the archive from the GHA yaml into a dedicated script file.

reading declarations

Changes to Makefile. All files

Makefile

@@ -1,9 +1,16 @@-PROFILE=release+PROFILE?=release EXE=target/$(PROFILE)/fd prefix=/usr/local bindir=$(prefix)/bin datadir=$(prefix)/share exe_name=fd+ifdef VERSION+	ARCHIVE_NAME = fd-v$(VERSION)+else+	ARCHIVE_NAME = fd+endif+export ARCHIVE_NAME+archive_path=package/$(ARCHIVE_NAME).tar.gz  $(EXE): Cargo.toml src/**/*.rs 	cargo build --profile $(PROFILE) --locked@@ -41,6 +48,11 @@ autocomplete/fdfind.fish: contrib/completion/fdfind.fish 	$(comp_dir) 	cp $< $@ +archive: $(archive_path)++$(archive_path): completions $(EXE)+	bash scripts/create-archive.sh+ install: $(EXE) completions 	install -Dm755 $(EXE) $(DESTDIR)$(bindir)/fd 	install -Dm644 autocomplete/fd.bash $(DESTDIR)/$(datadir)/bash-completion/completions/$(exe_name)