2
0
mirror of https://github.com/curl/curl.git synced 2025-04-24 16:40:32 +08:00

tidy-up: .gitignore lines mostly

- `.gitignore`: delete, dedupe and move rules upwards.
  Ref: 6389ba87b8e5cf74b70c54beab3498dfc773364e 
- `.gitignore`: fix generated test sources.
  Follow-up to 71cf0d1fca9e1f53524e1545ef0c08d174458d80 
- `.gitignore`: replace exe listings with a wildcard.
- lib: move `setup-*.h` from `EXTRA_DIST` to `CURL_HFILES`.
- `makedebug.bat`: uppercase an argument to match docs.
- GHA/non-native: delete stray env.
  Follow-up to 12a6de2f660dd692cce93cb65ce6e3ec126bb531 
- sort source lists.

Closes 
This commit is contained in:
Viktor Szakats 2025-01-26 15:28:56 +01:00
parent cb4cd36fe7
commit 5c31c2e670
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
30 changed files with 31 additions and 272 deletions

@ -318,7 +318,6 @@ jobs:
- name: 'configure'
run: |
if [ -n '${{ matrix.build.generate }}' ]; then
export OPENSSL_DIR=/
# https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-ios-tvos-visionos-or-watchos
[ -n '${{ matrix.build.generator }}' ] && options='-G ${{ matrix.build.generator }}'
cmake -B bld -DCMAKE_UNITY_BUILD=ON -DCURL_TEST_BUNDLES=ON -DCURL_WERROR=ON \

5
.gitignore vendored

@ -8,11 +8,15 @@
*.exp
*.la
*.lib
*.a
*.res
*.lo
*.o
*.obj
*.pdb
*.pyc
*.orig
*.rej
*~
.*.sw?
.cproject
@ -60,6 +64,7 @@ missing
mkinstalldirs
tags
test-driver
stamp-h*
scripts/_curl
scripts/curl.fish
curl_fuzzer

@ -50,7 +50,6 @@ int main(void)
int flags = 0;
if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
return 1;
;
return 0;
}
#endif

@ -2,120 +2,4 @@
#
# SPDX-License-Identifier: curl
10-at-a-time
address-scope
altsvc
anyauthput
block_ip
certinfo
chkspeed
connect-to
cookie_interface
debug
default-scheme
externalsocket
fileupload
fopen
ftp-wildcard
ftpget
ftpgetinfo
ftpgetresp
ftpsget
ftpupload
ftpuploadfrommem
ftpuploadresume
getinfo
getinmemory
getredirect
getreferrer
headerapi
hsts-preload
http-options
http-post
http2-download
http2-pushinmemory
http2-serverpush
http2-upload
http3
http3-present
httpcustomheader
httpput
httpput-postfields
https
imap-append
imap-authzid
imap-copy
imap-create
imap-delete
imap-examine
imap-fetch
imap-list
imap-lsub
imap-multi
imap-noop
imap-search
imap-ssl
imap-store
imap-tls
interface
ipv6
keepalive
localport
maxconnects
multi-app
multi-debugcallback
multi-double
multi-formadd
multi-legacy
multi-poll
multi-post
multi-single
netrc
new-gitignore
parseurl
persistent
pop3-authzid
pop3-dele
pop3-list
pop3-multi
pop3-noop
pop3-retr
pop3-ssl
pop3-stat
pop3-tls
pop3-top
pop3-uidl
post-callback
postinmemory
postit2
postit2-formadd
progressfunc
protofeats
range
resolve
rtsp
rtsp-options
sendrecv
sepheaders
sftpget
sftpuploadresume
shared-connection-cache
simple
simplepost
simplessl
smtp-authzid
smtp-expn
smtp-mail
smtp-mime
smtp-multi
smtp-ssl
smtp-tls
smtp-vrfy
sslbackend
unixsocket
url2file
urlapi
usercertinmem
websocket
websocket-cb
xmlstream
/[0-9a-z_-]+

@ -82,7 +82,7 @@ check_PROGRAMS = \
ipv6 \
keepalive \
localport \
maxconnects \
maxconnects \
multi-app \
multi-debugcallback \
multi-double \

@ -41,8 +41,8 @@ man_MANS = \
curl_easy_reset.3 \
curl_easy_send.3 \
curl_easy_setopt.3 \
curl_easy_ssls_import.3 \
curl_easy_ssls_export.3 \
curl_easy_ssls_import.3 \
curl_easy_strerror.3 \
curl_easy_unescape.3 \
curl_easy_upkeep.3 \
@ -56,8 +56,8 @@ man_MANS = \
curl_global_cleanup.3 \
curl_global_init.3 \
curl_global_init_mem.3 \
curl_global_trace.3 \
curl_global_sslset.3 \
curl_global_trace.3 \
curl_mime_addpart.3 \
curl_mime_data.3 \
curl_mime_data_cb.3 \
@ -87,11 +87,11 @@ man_MANS = \
curl_multi_socket_all.3 \
curl_multi_strerror.3 \
curl_multi_timeout.3 \
curl_multi_wakeup.3 \
curl_multi_wait.3 \
curl_multi_waitfds.3 \
curl_pushheader_bynum.3 \
curl_multi_wakeup.3 \
curl_pushheader_byname.3 \
curl_pushheader_bynum.3 \
curl_share_cleanup.3 \
curl_share_init.3 \
curl_share_setopt.3 \
@ -113,8 +113,8 @@ man_MANS = \
curl_ws_recv.3 \
curl_ws_send.3 \
libcurl-easy.3 \
libcurl-env.3 \
libcurl-env-dbg.3 \
libcurl-env.3 \
libcurl-errors.3 \
libcurl-multi.3 \
libcurl-security.3 \

@ -1,7 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
curlver.h.dist
stamp-h2
stamp-h3

3
lib/.gitattributes vendored

@ -1,3 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl

6
lib/.gitignore vendored

@ -2,12 +2,6 @@
#
# SPDX-License-Identifier: curl
*.a
*.orig
*.rej
*.res
TAGS
curl_config.h
curl_config.h.in
libcurl.vers
stamp-h1

@ -28,11 +28,9 @@ CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
CHECKSRC_DIST = .checksrc vauth/.checksrc vquic/.checksrc vssh/.checksrc \
vtls/.checksrc
EXTRA_DIST = config-win32.h config-plan9.h \
config-riscos.h config-mac.h curl_config.h.in libcurl.rc \
config-os400.h setup-os400.h \
$(CMAKE_DIST) setup-win32.h Makefile.soname optiontable.pl libcurl.def \
$(CHECKSRC_DIST)
EXTRA_DIST = config-mac.h config-os400.h config-plan9.h config-riscos.h \
config-win32.h curl_config.h.in libcurl.rc libcurl.def \
$(CMAKE_DIST) Makefile.soname optiontable.pl $(CHECKSRC_DIST)
lib_LTLIBRARIES = libcurl.la

@ -349,7 +349,9 @@ LIB_HFILES = \
select.h \
sendf.h \
setopt.h \
setup-os400.h \
setup-vms.h \
setup-win32.h \
share.h \
sigpipe.h \
slist.h \

1
m4/.gitignore vendored

@ -3,7 +3,6 @@
# SPDX-License-Identifier: curl
libtool.m4
libtool.m4.tmp
ltoptions.m4
ltsugar.m4
ltversion.m4

@ -2,7 +2,9 @@
#
# SPDX-License-Identifier: curl
VC*/src/*curl.vcproj.dist
VC*/lib/*curl.vcproj.dist
VC*/src/*curl.vcxproj.dist
VC*/lib/*curl.vcxproj.dist
*.ncb
*.opensdf
*.sdf
*.suo
*.user
*.vcxproj

@ -1,8 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo

@ -1,10 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo
/*.user
/*.vcxproj

@ -1,10 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo
/*.user
/*.vcxproj

@ -1,8 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo

@ -1,10 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo
/*.user
/*.vcxproj

@ -1,10 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo
/*.user
/*.vcxproj

@ -1,8 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo

@ -1,10 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo
/*.user
/*.vcxproj

@ -1,10 +0,0 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
/*.ncb
/*.opensdf
/*.sdf
/*.suo
/*.user
/*.vcxproj

3
src/.gitignore vendored

@ -2,9 +2,6 @@
#
# SPDX-License-Identifier: curl
*.a
*.res
curl
stamp-h2
tool_ca_embed.c
tool_hugehelp.c

6
tests/.gitignore vendored

@ -3,7 +3,6 @@
# SPDX-License-Identifier: curl
*pid
*.1.dist
configurehelp.pm
curl_client_key
curl_client_key.pub
@ -18,12 +17,7 @@ curl_ssh_config
curl_sshd_config
ftps_stunnel.conf
https_stunnel.conf
log
log*
runtests.html
runtests.pdf
testcurl.html
testcurl.pdf
*.port
config
second-hsts.txt

@ -2,12 +2,4 @@
#
# SPDX-License-Identifier: curl
h2-serverpush
hx-download
hx-upload
ws-data
ws-pingpong
h2-upgrade-extreme
tls-session-reuse
h2-pausing
upload-pausing
/[0-9a-z_-]+

@ -24,11 +24,11 @@
# These are all libcurl example programs to be test compiled
check_PROGRAMS = \
hx-download \
hx-upload \
h2-pausing \
h2-serverpush \
h2-upgrade-extreme \
hx-download \
hx-upload \
tls-session-reuse \
upload-pausing \
ws-data \

@ -2,10 +2,6 @@
#
# SPDX-License-Identifier: curl
lib[1234][0-9][0-9][0-9]
lib[56][0-9][0-9]
/lib[0-9a-z_-]+
lib1521.c
libtests.c
libauthretry
libntlmconnect
libprereq
libtest_bundle.c

@ -2,12 +2,4 @@
#
# SPDX-License-Identifier: curl
getpart
resolve
rtspd
sockfilt
sws
tftpd
socksd
disabled
mqttd
[0-9a-z_-]+

@ -3,4 +3,4 @@
# SPDX-License-Identifier: curl
/unit[0-9][0-9][0-9][0-9]
units.c
unit_bundle.c

@ -28,6 +28,6 @@ where.exe nmake.exe >nul 2>&1
if %ERRORLEVEL% EQU 1 (
echo Error: Cannot find nmake.exe - be sure to run this script from within a Developer Command-Prompt
) else (
nmake.exe /f Makefile.vc mode=static DEBUG=yes GEN_PDB=yes
nmake.exe /f Makefile.vc MODE=static DEBUG=yes GEN_PDB=yes
if %ERRORLEVEL% NEQ 0 echo Error: Build Failed
)