On Tue, Jan 20, 2015 at 3:36 PM, Josh Thompson <[email protected]>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> If you download and save the script, it might end up with dos style end of
> line characters.  If you get an error when trying to run it that includes
> "\r", you've encountered this the problem.  You can remove the "\r"
> characters
> by running the following command from the same directory as the script:
>
> NOTE: To get the ^M in the line, type Ctrl-V and then Ctrl-M.  Typing ^
> and M
> will not work (copying and pasting the line will not work).
>
> sed -i 's/^M$//' vcl-install.sh
>
>   I run into files using ^M for DOS/Microsoft line endings so often (esp.
in files sent to me by faculty) that I wrote this little Perl script:

 #!/usr/bin/perl -w
use strict;
# Read in file which uses ^M for end of line and substitute \n
my ($a );

while ($a = <>) {
  $a =~ s/\r/\n/g;   #substitutes a new line for a ^M
  print $a;
}

  I call it rmm.pl and it's so easy to remember/type  ./rmm.pl <in >out

--henry



> Josh
>
> On Friday, January 16, 2015 4:40:56 PM you wrote:
> > I've been working on an installation script that will be released with
> 2.4.
> > I'd love to have some feedback on it.  I've attached it for anyone who
> would
> > like to test it.
> >
> > **Do not run it on a system with VCL already installed.**
> >
> > It performs some checks to attempt to detect if VCL has already been
> > installed and will exit if it thinks so.  However, I'd hate to have it
> > overwrite someone's existing setup if there is a problem with it.
> >
> > The script is currently configured to download a test archive from my
> home
> > space on people.apache.org.
> >
> > Let me know how it works for you and if you have suggestions for it.
> >
> > Thanks!
> > Josh
> > --
> > -------------------------------
> > Josh Thompson
> > VCL Developer
> > North Carolina State University
> >
> > my GPG/PGP key can be found at pgp.mit.edu
> >
> > All electronic mail messages in connection with State business which
> > are sent to or received by this account are subject to the NC Public
> > Records Law and may be disclosed to third parties.
> - --
> - -------------------------------
> Josh Thompson
> VCL Developer
> North Carolina State University
>
> my GPG/PGP key can be found at pgp.mit.edu
>
> All electronic mail messages in connection with State business which
> are sent to or received by this account are subject to the NC Public
> Records Law and may be disclosed to third parties.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iEYEARECAAYFAlS+vFYACgkQV/LQcNdtPQOmzgCeNnXDbYf/8a5Q6wUb/wPZzFEc
> FbwAn1Zfi1+7oh4gRQ48YpzjzacMAapk
> =gfnI
> -----END PGP SIGNATURE-----
>
>

Reply via email to