cmhughes / latexindent.pl

Perl script to add indentation (leading horizontal space) to LaTeX files. It can modify line breaks before, during and after code blocks; it can perform text wrapping and paragraph line break removal. It can also perform string-based and regex-based substitutions/replacements. The script is customisable through its YAML interface.
GNU General Public License v3.0
864 stars 84 forks source link

/usr/local/lib , not /usr/local/bin #509

Closed hymie0 closed 7 months ago

hymie0 commented 7 months ago

defaultSettings.yaml and the LatexIndent directory belong in /usr/local/lib , not /usr/local/bin

cmhughes commented 7 months ago

I don't understand how this is related to latexindent

hymie0 commented 7 months ago

The file path-helper-files/CMakeLists.txt defines the following installation locations as being in/under /usr/local/bin/

install(FILES ../defaultSettings.yaml
        DESTINATION bin)

install(DIRECTORY ../LatexIndent
        DESTINATION bin)

The program latexindent.pl specifies the location of the LatexIndent directory as /usr/local/bin/LatexIndent/

use lib $FindBin::RealBin;
use LatexIndent::Document;

The file LatexIndent/GetYamlSettings.pm specifies the location of the defaultSettings.yaml file as /usr/local/bin/defaultSettings.yaml

    $defaultSettings = YAML::Tiny->read("$FindBin::RealBin/defaultSettings.yaml")

/usr/local/bin is not the proper location for auxiliary files such as these.

cmhughes commented 7 months ago

Do you have a reference for this?

hymie0 commented 7 months ago

I'm not interested in debating basic Unix with you.