dos line endings in pldoc.sh stop it working
Status: Alpha
Brought to you by:
altumano
Just installed pldoc-0.8.3.1exp and the readme.txt file for installation instructions do not work because:
1. pldoc.sh has dos line endings so when pldoc_example.sh runs it with ./pldoc.sh the system does not recognise "#!/bin/shCRLF" as a shell.
2. pldoc.sh is not executable
e.g.
sh pldoc_example.sh
pldoc_example.sh: line 2: ./pldoc.sh: Permission denied
chmod +x pldoc.sh
sh pldoc_example.sh
pldoc_example.sh: ./pldoc.sh: /bin/sh^M: bad interpreter: No such file or directory
cp pldoc.sh pldoc.sh.orig
perl -wp -e 's/\r$//' < pldoc.sh.orig > pldoc.sh
sh pldoc_example.sh
PLDoc version: 0.8.3.1
Parsing file samples/sample*.sql ...
Logged In: YES
user_id=1288039
Originator: NO
Or simply convert all *.sh doc to unix format.
For exmple
dos2unix *.sh
This production problem...