What would be useful information in the readme of a tarball given to a customer?
Assistant
A README file is a text file that provides instructions and information about how to use a software package or a tool. When providing a tarball to a customer, the README file should contain the following information:
Description: A brief description of the software package or tool and its purpose.
Installation instructions: Step-by-step instructions on how to install the software package or tool.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Dependencies: A list of any dependencies required for the software package or tool to function properly.
Configuration: Instructions on how to configure the software package or tool, if applicable.
Usage examples: Examples of how to use the software package or tool to perform common tasks.
Troubleshooting: Information on how to troubleshoot common issues that the customer may encounter while using the software package or tool.
License: Information on the type of license under which the software package or tool is distributed.
Contact information: Contact information for the person or organization responsible for the software package or tool, in case the customer has any questions or issues.
Change log: A list of changes made to the software package or tool in each release, including bug fixes and new features.
Additional resources: Links to additional resources such as documentation, forums, or FAQs that can help the customer get more out of the software package or tool.
User
Please write a bash script that writes the following markdown:
File or directory
Description
AUTHORS
current and former authors of CGAL
CHANGES.md
history of changes of CGAL
CGALConfig.cmake
[CMake package] configuration file for CGAL
CGALConfigVersion.cmake
[CMake package] version file for CGAL
CMakeLists.txt
main CMake project configuration file
INSTALL.md
information about the installation process
LICENSE
describes the license of CGAL
LICENSE.BSL
text of the Boost Software License (BSL) license
LICENSE.COMMERCIAL
text of the GeometryFactory Commercial license
LICENSE.GPL
text of the GNU General Public License (GPL) v3 license
LICENSE.LGPL
text of the GNU Lesser General Public License (LGPL) v3 license
LICENSE.RFL
text of the ETH Zurich Random Forest algorithm License (RFL) license
README.md
this file
VERSION
version number of this release of CGAL
auxiliary/
directory containing miscellaneous things, such as icons needed for the demos on macOS
cmake/
some scripts needed by the CMake build system
data/
directory containing various geometric data used by examples and demos of CGAL
demo/
many demo programs for the various packages of CGAL. These programs produce visual output.
doc_html/
documentation, such as the CGAL Installation Guide
examples/
programs illustrating the usage of various packages of CGAL.
include/
the include files for the CGAL library (as well as small external libraries, see the file )
Assistant
Sure! Here's a bash script that generates the markdown you provided:
#!/bin/bash
# Create an empty markdown file
touch "index.md"
# Write the table header
echo "| File or directory | Description |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
# Write the markdown for each file or directory
echo "| `AUTHORS` | current and former authors of CGAL |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `CHANGES.md` | history of changes of CGAL |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `CGALConfig.cmake`| [CMake package] configuration file for CGAL |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `CGALConfigVersion.cmake` | [CMake package] version file for CGAL |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `CMakeLists.txt` | main CMake project configuration file |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `INSTALL.md` | information about the installation process |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `LICENSE` | describes the license of CGAL |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `LICENSE.BSL` | text of the Boost Software License (BSL) license |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `LICENSE.COMMERCIAL` | text of the GeometryFactory Commercial license |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `LICENSE.GPL` | text of the GNU General Public License (GPL) v3 license |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `LICENSE.LGPL` | text of the GNU Lesser General Public License (LGPL) v3 license |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `LICENSE.RFL` | text of the ETH Zurich Random Forest algorithm License (RFL) license |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `README.md` | this file |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `VERSION` | version number of this release of CGAL |" >> "index.md"
echo "|-------------------|--------------------------------------------------------------------------------------------------|" >> "index.md"
echo "| `auxiliary/` | directory containing miscellaneous things, such as icons needed for the demos on macOS |" >> "
User
that's great, but please use printf rather than echo
Assistant
Sure, here's the script using printf instead of echo:
#!/bin/bash
printf "| File or directory | Description\n" > index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `AUTHORS` | current and former authors of CGAL\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `CHANGES.md` | history of changes of CGAL\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `CGALConfig.cmake` | [CMake package] configuration file for CGAL\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `CGALConfigVersion.cmake`| [CMake package] version file for CGAL\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `CMakeLists.txt` | main CMake project configuration file\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `INSTALL.md` | information about the installation process\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `LICENSE` | describes the license of CGAL\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `LICENSE.BSL` | text of the Boost Software License (BSL) license\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `LICENSE.COMMERCIAL` | text of the GeometryFactory Commercial license\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `LICENSE.GPL` | text of the GNU General Public License (GPL) v3 license\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `LICENSE.LGPL` | text of the GNU Lesser General Public License (LGPL) v3 license\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `LICENSE.RFL` | text of the ETH Zurich Random Forest algorithm License (RFL) license\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `README.md` | this file\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `VERSION` | version number of this release of CGAL\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `auxiliary/` | directory containing miscellaneous things, such as icons needed for the demos on macOS\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `cmake/` | some scripts needed by the CMake build system\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `data/` | directory containing various geometric data used by examples and demos of CGAL\n" >> index.md
printf "|------------------------|--------------------------------------------------------------------------------------------------\n" >> index.md
printf "| `demo/` | many demo programs for the various packages of CGAL. These programs produce visual output.\n" >> index.md
printf "
User
Can you rather use a tree description with ├── and └── ?
Assistant
Certainly! Here's the updated script using a tree description format with ├── and └──:
This script uses printf to generate the markdown file index.md with the directory tree structure you specified. The >> operator is used to append to the existing file, rather than overwriting it.
LICENSE
lib/
contains [CMake package] configuration files for CGAL