diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /samples | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'samples')
38 files changed, 194 insertions, 0 deletions
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt new file mode 100644 index 00000000..63e30e29 --- /dev/null +++ b/samples/CMakeLists.txt @@ -0,0 +1,67 @@ +set (SAMPLE_FILES + FT4/000000_000002.wav + FT8/210703_133430.wav + FST4+FST4W/210115_0058.wav + FST4+FST4W/201230_0300.wav + MSK144/181211_120500.wav + MSK144/181211_120800.wav + ISCAT/ISCAT-A/VK7MO_110401_235515.wav + ISCAT/ISCAT-B/K0AWU_100714_115000.wav + JT4/JT4A/DF2ZC_070926_040700.WAV + JT4/JT4F/OK1KIR_141105_175700.WAV + JT65/JT65B/DL7UAE_040308_002400.wav + JT65/JT65B/000000_0001.wav + JT65/JT65B/000000_0002.wav + JT65/JT65B/000000_0003.wav + JT65/JT65B/000000_0004.wav + JT65/JT65B/000000_0005.wav + JT65/JT65B/000000_0006.wav + JT65/JT65B/000000_0007.wav + JT9/130418_1742.wav + JTTY/260807_134110.wav + MSK144/181211_120500.wav + MSK144/181211_120800.wav + WSPR/150426_0918.wav + Q65/30A_Ionoscatter_6m/201203_022700.wav + Q65/30A_Ionoscatter_6m/201203_022800.wav + Q65/30A_Ionoscatter_6m/201203_022900.wav + Q65/30A_Ionoscatter_6m/201203_024000.wav + Q65/60A_EME_6m/210106_1621.wav + Q65/60B_1296_Troposcatter/210109_0007.wav + Q65/60B_1296_Troposcatter/210109_0147.wav + Q65/60B_1296_Troposcatter/210109_0151.wav + Q65/60D_EME_10GHz/201212_1838.wav + Q65/120D_Rainscatter_10_GHz/210117_0920.wav + Q65/120E_Ionoscatter_6m/210130_1438.wav + Q65/120E_Ionoscatter_6m/210130_1442.wav + Q65/300A_Optical_Scatter/201210_0505.wav + QMAP/241019_0403.qm + ) + +set (contents_file_name contents_${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.json) +set (contents_file ${CMAKE_CURRENT_BINARY_DIR}/${contents_file_name}) +set (web_tree ${CMAKE_CURRENT_BINARY_DIR}/web) +set_source_files_properties (${contents_file} PROPERTIES GENERATED ON) + +add_custom_command ( + OUTPUT ${contents_file} + COMMAND ${CMAKE_COMMAND} ARGS -Dcontents_file=${contents_file} -DFILES="${SAMPLE_FILES}" -DDEST=${CMAKE_CURRENT_BINARY_DIR} -P make_contents.cmake + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + DEPENDS ${SAMPLE_FILES} make_contents.cmake +) + +find_program (RSYNC_EXECUTABLE rsync) +add_custom_command ( + OUTPUT upload.timestamp + COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${contents_file} ${web_tree}/samples/${contents_file_name} + # Source path must be relative (no drive letter): on MSYS2/Windows, rsync + # parses any "X:" prefix as a remote host spec, and with an actually-remote + # destination too it then refuses with "source and destination cannot both + # be remote." WORKING_DIRECTORY defaults to CMAKE_CURRENT_BINARY_DIR here, + # so a bare "web/samples" resolves the same as the old absolute path did. + COMMAND ${RSYNC_EXECUTABLE} ARGS -avz --progress web/samples ${PROJECT_SAMPLES_UPLOAD_DEST} + COMMAND ${CMAKE_COMMAND} ARGS -E touch upload.timestamp + DEPENDS ${contents_file} + COMMENT "Uploading WSJT-X samples to web server" + ) +add_custom_target (upload-samples DEPENDS upload.timestamp) diff --git a/samples/FST4+FST4W/201230_0300.wav b/samples/FST4+FST4W/201230_0300.wav Binary files differnew file mode 100644 index 00000000..524875f3 --- /dev/null +++ b/samples/FST4+FST4W/201230_0300.wav diff --git a/samples/FST4+FST4W/210115_0058.wav b/samples/FST4+FST4W/210115_0058.wav Binary files differnew file mode 100644 index 00000000..c0541b3d --- /dev/null +++ b/samples/FST4+FST4W/210115_0058.wav diff --git a/samples/FT4/000000_000002.wav b/samples/FT4/000000_000002.wav Binary files differnew file mode 100644 index 00000000..e5cdc880 --- /dev/null +++ b/samples/FT4/000000_000002.wav diff --git a/samples/FT8/210703_133430.wav b/samples/FT8/210703_133430.wav Binary files differnew file mode 100644 index 00000000..2b00aec2 --- /dev/null +++ b/samples/FT8/210703_133430.wav diff --git a/samples/ISCAT/ISCAT-A/VK7MO_110401_235515.wav b/samples/ISCAT/ISCAT-A/VK7MO_110401_235515.wav Binary files differnew file mode 100644 index 00000000..ca8cbf21 --- /dev/null +++ b/samples/ISCAT/ISCAT-A/VK7MO_110401_235515.wav diff --git a/samples/ISCAT/ISCAT-B/K0AWU_100714_115000.wav b/samples/ISCAT/ISCAT-B/K0AWU_100714_115000.wav Binary files differnew file mode 100644 index 00000000..405ba864 --- /dev/null +++ b/samples/ISCAT/ISCAT-B/K0AWU_100714_115000.wav diff --git a/samples/JT4/JT4A/DF2ZC_070926_040700.WAV b/samples/JT4/JT4A/DF2ZC_070926_040700.WAV Binary files differnew file mode 100644 index 00000000..76b2b106 --- /dev/null +++ b/samples/JT4/JT4A/DF2ZC_070926_040700.WAV diff --git a/samples/JT4/JT4F/OK1KIR_141105_175700.WAV b/samples/JT4/JT4F/OK1KIR_141105_175700.WAV Binary files differnew file mode 100644 index 00000000..5c260cd5 --- /dev/null +++ b/samples/JT4/JT4F/OK1KIR_141105_175700.WAV diff --git a/samples/JT65/JT65B/000000_0001.wav b/samples/JT65/JT65B/000000_0001.wav Binary files differnew file mode 100644 index 00000000..163b5f07 --- /dev/null +++ b/samples/JT65/JT65B/000000_0001.wav diff --git a/samples/JT65/JT65B/000000_0002.wav b/samples/JT65/JT65B/000000_0002.wav Binary files differnew file mode 100644 index 00000000..9d114235 --- /dev/null +++ b/samples/JT65/JT65B/000000_0002.wav diff --git a/samples/JT65/JT65B/000000_0003.wav b/samples/JT65/JT65B/000000_0003.wav Binary files differnew file mode 100644 index 00000000..94c85e3f --- /dev/null +++ b/samples/JT65/JT65B/000000_0003.wav diff --git a/samples/JT65/JT65B/000000_0004.wav b/samples/JT65/JT65B/000000_0004.wav Binary files differnew file mode 100644 index 00000000..c59f412f --- /dev/null +++ b/samples/JT65/JT65B/000000_0004.wav diff --git a/samples/JT65/JT65B/000000_0005.wav b/samples/JT65/JT65B/000000_0005.wav Binary files differnew file mode 100644 index 00000000..2e7b0ff9 --- /dev/null +++ b/samples/JT65/JT65B/000000_0005.wav diff --git a/samples/JT65/JT65B/000000_0006.wav b/samples/JT65/JT65B/000000_0006.wav Binary files differnew file mode 100644 index 00000000..9970f734 --- /dev/null +++ b/samples/JT65/JT65B/000000_0006.wav diff --git a/samples/JT65/JT65B/000000_0007.wav b/samples/JT65/JT65B/000000_0007.wav Binary files differnew file mode 100644 index 00000000..e48a0725 --- /dev/null +++ b/samples/JT65/JT65B/000000_0007.wav diff --git a/samples/JT65/JT65B/DL7UAE_040308_002400.wav b/samples/JT65/JT65B/DL7UAE_040308_002400.wav Binary files differnew file mode 100644 index 00000000..f0d3d58f --- /dev/null +++ b/samples/JT65/JT65B/DL7UAE_040308_002400.wav diff --git a/samples/JT9/130418_1742.wav b/samples/JT9/130418_1742.wav Binary files differnew file mode 100644 index 00000000..056cd2e4 --- /dev/null +++ b/samples/JT9/130418_1742.wav diff --git a/samples/JTTY/260807_134110.wav b/samples/JTTY/260807_134110.wav Binary files differnew file mode 100644 index 00000000..1f253896 --- /dev/null +++ b/samples/JTTY/260807_134110.wav diff --git a/samples/MSK144/181211_120500.wav b/samples/MSK144/181211_120500.wav Binary files differnew file mode 100644 index 00000000..dc060163 --- /dev/null +++ b/samples/MSK144/181211_120500.wav diff --git a/samples/MSK144/181211_120800.wav b/samples/MSK144/181211_120800.wav Binary files differnew file mode 100644 index 00000000..a353e70a --- /dev/null +++ b/samples/MSK144/181211_120800.wav diff --git a/samples/Q65/120D_Rainscatter_10_GHz/210117_0920.wav b/samples/Q65/120D_Rainscatter_10_GHz/210117_0920.wav Binary files differnew file mode 100644 index 00000000..a7243be5 --- /dev/null +++ b/samples/Q65/120D_Rainscatter_10_GHz/210117_0920.wav diff --git a/samples/Q65/120E_Ionoscatter_6m/210130_1438.wav b/samples/Q65/120E_Ionoscatter_6m/210130_1438.wav Binary files differnew file mode 100644 index 00000000..6d1921ac --- /dev/null +++ b/samples/Q65/120E_Ionoscatter_6m/210130_1438.wav diff --git a/samples/Q65/120E_Ionoscatter_6m/210130_1442.wav b/samples/Q65/120E_Ionoscatter_6m/210130_1442.wav Binary files differnew file mode 100644 index 00000000..d59e82b9 --- /dev/null +++ b/samples/Q65/120E_Ionoscatter_6m/210130_1442.wav diff --git a/samples/Q65/300A_Optical_Scatter/201210_0505.wav b/samples/Q65/300A_Optical_Scatter/201210_0505.wav Binary files differnew file mode 100644 index 00000000..eb95d8bc --- /dev/null +++ b/samples/Q65/300A_Optical_Scatter/201210_0505.wav diff --git a/samples/Q65/30A_Ionoscatter_6m/201203_022700.wav b/samples/Q65/30A_Ionoscatter_6m/201203_022700.wav Binary files differnew file mode 100644 index 00000000..12db3ed5 --- /dev/null +++ b/samples/Q65/30A_Ionoscatter_6m/201203_022700.wav diff --git a/samples/Q65/30A_Ionoscatter_6m/201203_022800.wav b/samples/Q65/30A_Ionoscatter_6m/201203_022800.wav Binary files differnew file mode 100644 index 00000000..8dbd3766 --- /dev/null +++ b/samples/Q65/30A_Ionoscatter_6m/201203_022800.wav diff --git a/samples/Q65/30A_Ionoscatter_6m/201203_022900.wav b/samples/Q65/30A_Ionoscatter_6m/201203_022900.wav Binary files differnew file mode 100644 index 00000000..ef9c1423 --- /dev/null +++ b/samples/Q65/30A_Ionoscatter_6m/201203_022900.wav diff --git a/samples/Q65/30A_Ionoscatter_6m/201203_024000.wav b/samples/Q65/30A_Ionoscatter_6m/201203_024000.wav Binary files differnew file mode 100644 index 00000000..509f75f0 --- /dev/null +++ b/samples/Q65/30A_Ionoscatter_6m/201203_024000.wav diff --git a/samples/Q65/60A_EME_6m/210106_1621.wav b/samples/Q65/60A_EME_6m/210106_1621.wav Binary files differnew file mode 100644 index 00000000..5fd22bb3 --- /dev/null +++ b/samples/Q65/60A_EME_6m/210106_1621.wav diff --git a/samples/Q65/60B_1296_Troposcatter/210109_0007.wav b/samples/Q65/60B_1296_Troposcatter/210109_0007.wav Binary files differnew file mode 100644 index 00000000..35552680 --- /dev/null +++ b/samples/Q65/60B_1296_Troposcatter/210109_0007.wav diff --git a/samples/Q65/60B_1296_Troposcatter/210109_0147.wav b/samples/Q65/60B_1296_Troposcatter/210109_0147.wav Binary files differnew file mode 100644 index 00000000..945726d8 --- /dev/null +++ b/samples/Q65/60B_1296_Troposcatter/210109_0147.wav diff --git a/samples/Q65/60B_1296_Troposcatter/210109_0151.wav b/samples/Q65/60B_1296_Troposcatter/210109_0151.wav Binary files differnew file mode 100644 index 00000000..70e7a915 --- /dev/null +++ b/samples/Q65/60B_1296_Troposcatter/210109_0151.wav diff --git a/samples/Q65/60D_EME_10GHz/201212_1838.wav b/samples/Q65/60D_EME_10GHz/201212_1838.wav Binary files differnew file mode 100644 index 00000000..a6e2754e --- /dev/null +++ b/samples/Q65/60D_EME_10GHz/201212_1838.wav diff --git a/samples/QMAP/241019_0403.qm b/samples/QMAP/241019_0403.qm Binary files differnew file mode 100644 index 00000000..34d08dc2 --- /dev/null +++ b/samples/QMAP/241019_0403.qm diff --git a/samples/README b/samples/README new file mode 100644 index 00000000..db1c18e5 --- /dev/null +++ b/samples/README @@ -0,0 +1,20 @@ +This directory contains the resources necessary to build the WSJT-X +samples database. The CMake build script creates a directory structure +ready for upload to the project samples web or ftp file server. The +CMake script also defines a build target 'upload-samples' which +uploads the sample database to the the destination defined by the +project CMake variable PROJECT_SAMPLES_UPLOAD_DEST (defined in the +project root CMake script). A suitably authorized user may use this +target to update the server with the latest samples. + +The samples database includes a JSON contents file for each +major/minor version combination of WSJT-X, this file is generated by +CMake and should not be manually edited. + +To add new samples simply add the files here and update the +SAMPLE_FILES list variable in the CMakeLists.txt file in this +directory. Sample files must be checked into source control. A +meaningful directory structure is advisable, the same directory +structure will be replicated by the WSJT-X sample downloader dialog +allowing WSJT-X users to easily identify wath each sample file +contains. diff --git a/samples/WSPR/150426_0918.wav b/samples/WSPR/150426_0918.wav Binary files differnew file mode 100644 index 00000000..c53ec20a --- /dev/null +++ b/samples/WSPR/150426_0918.wav diff --git a/samples/make_contents.cmake b/samples/make_contents.cmake new file mode 100644 index 00000000..42f2bead --- /dev/null +++ b/samples/make_contents.cmake @@ -0,0 +1,107 @@ +string (REPLACE " " ";" FILES ${FILES}) # make back into a list + +function(JOIN VALUES GLUE OUTPUT) + string (REGEX REPLACE "([^\\]|^);" "\\1${GLUE}" _TMP_STR "${VALUES}") + string (REGEX REPLACE "[\\](.)" "\\1" _TMP_STR "${_TMP_STR}") #fixes escaping + set (${OUTPUT} "${_TMP_STR}" PARENT_SCOPE) +endfunction() + +function (indent) + foreach (temp RANGE ${level}) + file (APPEND ${contents_file} " ") + endforeach () +endfunction () + +function (end_entry) + file (APPEND ${contents_file} "\n") + set(first 0 PARENT_SCOPE) + math (EXPR level "${level} - 1") + indent () + file (APPEND ${contents_file} "]\n") + math (EXPR level "${level} - 2") + indent () + file (APPEND ${contents_file} "}") + string (FIND "${dirs}" "${cwd}" pos) + set (level ${level} PARENT_SCOPE) +endfunction () + +file (WRITE ${contents_file} "[") +set (cwd) +set (level 0) +set (first 1) +list (SORT FILES) +foreach (file IN LISTS FILES) + string (REGEX MATCHALL "[^/]*/" dirs "${file}") + string (REPLACE "/" "" dirs "${dirs}") + string (REGEX MATCH "[^/]*$" name "${file}") + string (FIND "${dirs}" "${cwd}" pos) + list (LENGTH cwd cwd_count) + if (${pos} EQUAL 0) + # same root + while (${cwd_count} GREATER 0) + list (REMOVE_AT dirs 0) + math (EXPR cwd_count "${cwd_count} - 1") + endwhile () + else () + # reduce cwd until matched + while ((NOT ${pos} EQUAL 0) AND ${cwd_count} GREATER 0) + math (EXPR cwd_count "${cwd_count} - 1") + list (REMOVE_AT cwd ${cwd_count}) + string (FIND "${dirs}" "${cwd}" pos) + end_entry () + endwhile () + # back to same root + while (${cwd_count} GREATER 0) + list (REMOVE_AT dirs 0) + math (EXPR cwd_count "${cwd_count} - 1") + endwhile () + endif () + list (LENGTH cwd cwd_count) + list (LENGTH dirs path_count) + while (${path_count} GREATER 0) + list (GET dirs 0 dir) + list (APPEND cwd "${dir}") + list (REMOVE_AT dirs 0) + if (${first}) + file (APPEND ${contents_file} "\n") + set (first 0) + else () + file (APPEND ${contents_file} ",\n") + endif () + indent () + file (APPEND ${contents_file} "{\n") + math (EXPR level "${level} + 1") + indent () + file (APPEND ${contents_file} "\"type\": \"directory\",\n") + indent () + file (APPEND ${contents_file} "\"name\": \"${dir}\",\n") + indent () + file (APPEND ${contents_file} "\"entries\": [") + set (first 1) + math (EXPR level "${level} + 2") + math (EXPR path_count "${path_count} - 1") + endwhile () + JOIN ("${cwd}" "/" path) + file (COPY "${file}" DESTINATION "${DEST}/web/samples/${path}") + if (${first}) + file (APPEND ${contents_file} "\n") + set (first 0) + else () + file (APPEND ${contents_file} ",\n") + endif () + indent () + file (APPEND ${contents_file} "{\n") + math (EXPR level "${level} + 1") + indent () + file (APPEND ${contents_file} "\"type\": \"file\",\n") + indent () + file (APPEND ${contents_file} "\"name\": \"${name}\"\n") + math (EXPR level "${level} - 1") + indent () + file (APPEND ${contents_file} "}") + set (first 0) +endforeach () +if (${level} GREATER 1) + end_entry () +endif () +file (APPEND ${contents_file} "\n]\n") |
