diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-06-15 15:36:16 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-06-15 15:36:16 +0900 |
commit | a059e15cdeef3e8de9a34de48c49c29d398bf4e8 (patch) | |
tree | 4bc4324f3889b82de6cbd83a9d6b3b3e3544b4b4 | |
parent | 5a97b1325453d641a795710a92b233c665b662b1 (diff) | |
download | postgresql-a059e15cdeef3e8de9a34de48c49c29d398bf4e8.tar.gz postgresql-a059e15cdeef3e8de9a34de48c49c29d398bf4e8.zip |
Re-add locally-generated files in pg_upgrade's .gitignore and Makefile
This reverts the changes to pg_upgrade's Makefile and .gitignore done in
15b6d21. The TAP tests run in isolation, executing pg_upgrade in
tmp_check/ in the build directory so as any files created in the
execution path (reindex_hash.sql and delete_old_cluster.{sh,bat}) are
never in the tree, so entries are not necessary in this case. However,
not having these impacts the cleanliness of the code tree when running
./pg_upgrade directly from src/bin/pg_upgrade/.
This commit adds back to .gitignore all the files generated in the
execution path, and the Makefile rule to clean them up if they exist.
Per gripe from Tom Lane.
Discussion: https://postgr.es/m/90595.1655227384@sss.pgh.pa.us
-rw-r--r-- | src/bin/pg_upgrade/.gitignore | 4 | ||||
-rw-r--r-- | src/bin/pg_upgrade/Makefile | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/.gitignore b/src/bin/pg_upgrade/.gitignore index 05200a09f14..a66166ea0fa 100644 --- a/src/bin/pg_upgrade/.gitignore +++ b/src/bin/pg_upgrade/.gitignore @@ -1,4 +1,8 @@ /pg_upgrade +# Generated by manual invocation +/delete_old_cluster.sh +/delete_old_cluster.bat +/reindex_hash.sql # Generated by test suite /log/ /tmp_check/ diff --git a/src/bin/pg_upgrade/Makefile b/src/bin/pg_upgrade/Makefile index 80ebe9bd174..587793e815b 100644 --- a/src/bin/pg_upgrade/Makefile +++ b/src/bin/pg_upgrade/Makefile @@ -48,7 +48,8 @@ uninstall: clean distclean maintainer-clean: rm -f pg_upgrade$(X) $(OBJS) - rm -rf log/ tmp_check/ + rm -rf delete_old_cluster.sh log/ tmp_check/ \ + reindex_hash.sql check: $(prove_check) |