cederom opened a new pull request, #17525:
URL: https://github.com/apache/nuttx/pull/17525

   ## Summary
   
   This script downloads all NuttX RTOS and Application snapshot packages from 
the upstream git repository based on the provided git tags list. These are NOT 
official release packages as checkum will differ.
   
   When launched from the local NuttX git repository clone the script will 
obtain all available tags to be downloaded, otherwise list of tags needs to be 
provided manually (or when just selected tag is required). This script uses 
``wget`` underneath, make sure this tool is installed. Fetch log file is 
created with a timestamp in name next to the packages.
   
   Having all tags packaged is important for changes comparison between 
specific versions, testing a specific version, compatibility checks, searching 
for a feature introduction timeline, etc.
   
   Usage: `./nxtagspkgsfetch.sh [download_path] [tags_list_space_separated]`
   
   You can provide optional download path (default `../../nuttx-packages`) and 
tags list to get packages for (default all tags from local git clone). When 
providing tags you also need to provide download path.
   
   Documentation update contains new tool description (above).
   
   
   ## Impact
   
   * quick way to obtain packages of all or selected nuttx/nuttx-apps tags.
   * useful for testing, comparison, history browse, etc.
   
   ## Testing
   
   Developed and tested on `FreeBSD 14.3-RELEASE-p5 amd64`. Script is using 
`bash, git, wget` for portability.
   
   Launched from outside local git clone:
   
   ```
   % ./nxtagspkgsfetch.sh packages nuttx-1.0 nuttx-12.11.0
   fatal: not a git repository (or any parent up to mount point /)
   Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
   ====================================================================
    NuttX RTOS and Apps release packages fetch script version 20251216
   ====================================================================
   
     Usage: ./nxtagspkgsfetch.sh [download_path] [tags_list_space_separated]
   
     Destination : packages.
        Git tags : nuttx-1.0 nuttx-12.11.0.
   
   NOTE: Zero package size = no corresponding tag.
   WARNING: This tool may fetch several GB of data!
   
   Press Return to continue, Ctrl+C to abort.
   
   Creating: packages.
   
   nuttx-1.0.tar.gz                                    [ <=>                    
                                                                               
] 270,50K  --.-KB/s    in 0,1s
   nuttx-12.11.0.tar.gz                                [                        
            <=>                                                                
] 101,14M  7,27MB/s    in 7,3s
   nuttx-apps-12.11.0.tar.gz                           [   <=>                  
                                                                               
]   4,19M  7,40MB/s    in 0,6s
   
   Done! Log is at: packages/wget-1765932294.log.
   
   % cat packages/wget-1765932294.log
   2025-12-17 01:45:13 
URL:https://codeload.github.com/apache/nuttx/tar.gz/refs/tags/nuttx-1.0 
[276996] -> "nuttx-1.0.tar.gz" [1]
   https://codeload.github.com/apache/nuttx-apps/tar.gz/refs/tags/nuttx-1.0:
   2025-12-17 01:45:14 ERROR 404: Not Found.
   2025-12-17 01:45:23 
URL:https://codeload.github.com/apache/nuttx/tar.gz/refs/tags/nuttx-12.11.0 
[106049596] -> "nuttx-12.11.0.tar.gz" [1]
   2025-12-17 01:45:25 
URL:https://codeload.github.com/apache/nuttx-apps/tar.gz/refs/tags/nuttx-12.11.0
 [4394772] -> "nuttx-apps-12.11.0.tar.gz" [1]
   
   % ls -alh packages
   total 216272
   drwxr-xr-x  2 XXX XXX  320B 17 gru 01:45 .
   drwxr-xr-x  3 XXX XXX  128B 17 gru 01:45 ..
   -rw-r--r--  1 XXX XXX  271K 17 gru 01:45 nuttx-1.0.tar.gz
   -rw-r--r--  1 XXX XXX  101M 17 gru 01:45 nuttx-12.11.0.tar.gz
   -rw-r--r--  1 XXX XXX    0B 17 gru 01:45 nuttx-apps-1.0.tar.gz
   -rw-r--r--  1 XXX XXX  4,2M 17 gru 01:45 nuttx-apps-12.11.0.tar.gz
   -rw-r--r--  1 XXX XXX  527B 17 gru 01:45 wget-1765932294.log
   ```
   
   Launched from the local git clone:
   
   ```
   % ./nxtagspkgsfetch.sh
   ====================================================================
    NuttX RTOS and Apps release packages fetch script version 20251216
   ====================================================================
   
     Usage: ./nxtagspkgsfetch.sh [download_path] [tags_list_space_separated]
   
     Destination : ../../nuttx-packages.
        Git tags : nuttx-1.0 nuttx-1.1 nuttx-1.2 nuttx-10.0.0 nuttx-10.0.0-RC0 
nuttx-10.0.1 nuttx-10.1.0 nuttx-10.1.0-RC0 nuttx-10.1.0-RC1 nuttx-10.2.0 
nuttx-10.2.0-RC0 nuttx-10.3.0 nuttx-10.3.0-RC0 nuttx-10.3.0-RC1 
nuttx-10.3.0-RC2 nuttx-10.3.0-RC3 nuttx-10.3.0-RC4 nuttx-11.0.0 
nuttx-11.0.0-RC0 nuttx-11.0.0-RC1 nuttx-11.0.0-RC2 nuttx-12.0.0 
nuttx-12.0.0-RC0 nuttx-12.0.0-RC1 nuttx-12.1.0 nuttx-12.1.0-RC0 nuttx-12.10.0 
nuttx-12.10.0-RC0 nuttx-12.11.0 nuttx-12.11.0-RC0 nuttx-12.11.0-RC1 
nuttx-12.2.0 nuttx-12.2.0-RC0 nuttx-12.2.1 nuttx-12.2.1-RC0 nuttx-12.3.0 
nuttx-12.3.0-RC0 nuttx-12.3.0-RC1 nuttx-12.4.0 nuttx-12.4.0-RC0 nuttx-12.5.0 
nuttx-12.5.0-RC0 nuttx-12.5.1 nuttx-12.5.1-RC0 nuttx-12.6.0 nuttx-12.6.0-RC0 
nuttx-12.6.0-RC1 nuttx-12.7.0 nuttx-12.7.0-RC0 nuttx-12.7.0-RC1 nuttx-12.8.0 
nuttx-12.8.0-RC0 nuttx-12.9.0 nuttx-12.9.0-RC0 nuttx-12.9.0-RC1 nuttx-2.1 
nuttx-2.2 nuttx-2.3 nuttx-2.4 nuttx-2.5 nuttx-2.6 nuttx-2.7 nuttx-2.8 nuttx-3.0 
nuttx-3.1 nuttx-3.10 nuttx-3.11 nuttx-3.12 nuttx-3
 .13 nuttx-3.14 nuttx-3.15 nuttx-3.16 nuttx-3.17 nuttx-3.18 nuttx-3.19 
nuttx-3.2 nuttx-3.3 nuttx-3.4 nuttx-3.5 nuttx-3.6 nuttx-3.6.1 nuttx-3.7 
nuttx-3.8 nuttx-3.9 nuttx-4.0 nuttx-4.1 nuttx-4.10 nuttx-4.11 nuttx-4.12 
nuttx-4.13 nuttx-4.14 nuttx-4.2 nuttx-4.3 nuttx-4.4 nuttx-4.5 nuttx-4.6 
nuttx-4.7 nuttx-4.8 nuttx-4.9 nuttx-5.0 nuttx-5.1 nuttx-5.10 nuttx-5.11 
nuttx-5.12 nuttx-5.13 nuttx-5.14 nuttx-5.15 nuttx-5.16 nuttx-5.17 nuttx-5.18 
nuttx-5.19 nuttx-5.2 nuttx-5.3 nuttx-5.4 nuttx-5.5 nuttx-5.6 nuttx-5.7 
nuttx-5.8 nuttx-5.9 nuttx-6.0 nuttx-6.1 nuttx-6.10 nuttx-6.11 nuttx-6.12 
nuttx-6.13 nuttx-6.14 nuttx-6.15 nuttx-6.16 nuttx-6.17 nuttx-6.18 nuttx-6.19 
nuttx-6.2 nuttx-6.20 nuttx-6.21 nuttx-6.22 nuttx-6.23 nuttx-6.24 nuttx-6.25 
nuttx-6.26 nuttx-6.27 nuttx-6.28 nuttx-6.29 nuttx-6.3 nuttx-6.30 nuttx-6.31 
nuttx-6.32 nuttx-6.33 nuttx-6.4 nuttx-6.5 nuttx-6.6 nuttx-6.7 nuttx-6.8 
nuttx-6.9 nuttx-7.1 nuttx-7.10 nuttx-7.11 nuttx-7.12 nuttx-7.13 nuttx-7.14 
nuttx-7.15 nuttx-7.16 nuttx-7.17 nuttx-7.
 18 nuttx-7.19 nuttx-7.2 nuttx-7.20 nuttx-7.21 nuttx-7.22 nuttx-7.23 nuttx-7.24 
nuttx-7.25 nuttx-7.26 nuttx-7.27 nuttx-7.28 nuttx-7.29 nuttx-7.3 nuttx-7.30 
nuttx-7.31 nuttx-7.4 nuttx-7.5 nuttx-7.6 nuttx-7.7 nuttx-7.8 nuttx-7.9 
nuttx-8.1 nuttx-8.2 nuttx-9.0.0 nuttx-9.0.0-RC0 nuttx-9.0.0-RC1 nuttx-9.1.0 
nuttx-9.1.0-RC0 nuttx-9.1.0-RC1 nuttx-9.1.0-RC2 nuttx-9.1.1 nuttx-9.1.1-RC0.
   
   NOTE: Using all tags from current nuttx repo clone.
   NOTE: Zero package size = no corresponding tag.
   WARNING: This tool may fetch several GB of data!
   
   Press Return to continue, Ctrl+C to abort.
   
   Creating: ../../nuttx-packages.
   
   nuttx-1.0.tar.gz                                    [ <=>                    
                                                                               
] 270,50K  --.-KB/s    in 0,1s
   nuttx-1.1.tar.gz                                    [ <=>                    
                                                                               
] 275,63K  --.-KB/s    in 0,1s
   (..)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to