pacman/scripts
Vekhir 31ffbc94ca Delete entire $srcdir upon clean build
Currently, the file glob used to clean the $srcdir misses dotfiles.

This commit instead removes the directory entirely and recreates it.
Since the directory has to exist prior to deletion, the creation commands
are duplicated. Perhaps they could be moved to a function later on.

The directory cannot be removed while inside it, so the directory change
is moved down the line. One important insight here is that almost all functions
after it are actually independent of $pwd, allowing the optimization of just
not changing directory. They do however depend on the existence of $srcdir, so
it has to be recreated.
The only exception to this is `extract_sources` which depends on $pwd being $srcdir.

An alternative proposal wanted to extend the file matching for deletion, but it
was deemed impractical.
2023-11-04 00:01:22 +00:00
..
completion Correct typos in zsh_completion.in 2023-10-02 04:34:24 +00:00
libmakepkg makepkg: Implement the verify function 2023-10-02 05:12:12 +00:00
po Update mailing list url 2021-11-20 12:38:25 -08:00
.gitignore libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
libmakepkg.pc.in Update urls to not use www. for archlinux.org 2021-04-08 10:14:33 +10:00
makepkg-template.pl.in Update copyright years 2022-01-02 13:34:52 +10:00
makepkg.sh.in Delete entire $srcdir upon clean build 2023-11-04 00:01:22 +00:00
meson.build meson: do not use meson.source_root() and meson.build_root() 2022-03-06 16:26:34 +10:00
pacman-db-upgrade.sh.in Update copyright years 2022-01-02 13:34:52 +10:00
pacman-key.sh.in pacman-key: allow overriding KEYRING_IMPORT_DIR with --populate-from 2023-09-07 00:12:41 +10:00
repo-add.sh.in repo-add: clarify exit messages 2023-09-30 23:27:04 +10:00
wrapper.sh.in Update copyright years 2022-01-02 13:34:52 +10:00