mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 10:40:30 +01:00
contrib/makerepo: use the patch backup extentions from specfile for gitignore
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
fa980d800b
commit
0f75272136
1 changed files with 5 additions and 1 deletions
|
|
@ -237,7 +237,11 @@ EOF
|
|||
git commit -m '*** add all'
|
||||
[[ x == "x$(git diff HEAD "$ORIG_HEAD")" ]] || die "error recreating initial tarball"
|
||||
fi
|
||||
cat ../makerepo.gitignore > .gitignore
|
||||
(
|
||||
cat ../makerepo.gitignore;
|
||||
sed -n 's/^%patch\([0-9]\+\) \+.*-b \+\([^ ]\+\).*$/*\2/p' ../"$SPEC";
|
||||
) | LANG=C sort | LANG=C uniq > .gitignore
|
||||
|
||||
git rm --cached -r .
|
||||
git add --all .
|
||||
git commit -m "*** clean state (ignored files removed)"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue