cbm-fles / flesnet

CBM FLES Timeslice Building
7 stars 22 forks source link

Add magic(5) support for Boost binary archives #172

Closed cuveland closed 2 months ago

cuveland commented 2 months ago

It is sometimes useful to check the BOOST_ARCHIVE_VERSION of a binary Boost serialization::archive (e.g., .tsa file).

Inspired by this MR by @PALoizeau, the provided file adds support to the popular file command.

It does not need to be compiled, and thus does not depend on the installed FairSoft version. To avoid the need for installation, it could also be wrapped in a 1-line shell script that calls file with the -m magicfile option.