From: jeffdbREMOVETHIS AT netzone DOT com (Mikey) Subject: Re: configuration scripts 15 Sep 1997 19:01:38 -0700 Message-ID: <3421e24c.1020202.cygnus.gnu-win32@smtp.netzone.com> References: Reply-To: jeffdbREMOVETHIS AT netzone DOT com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--=_341de2651045788075358a9.MFSBCHJLHS" To: "Smith, Eric" , gnu-win32 AT cygnus DOT com ----=_341de2651045788075358a9.MFSBCHJLHS Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit if you haven't done this yet stop, remount all filesystems -b and then reinstall from cdk.exe and user.exe the shell scripts/headers/sources would only have cr\lf if you were mounted without -b to start with or if you used winzip to install. attached is a utility to convert all the files in a dir to \n from \r\n and vica/versa after building put in path and do ln -s dtou.exe utod to convert \r\n to \n do dtou * (under bash) to convert \n to \r\n do utod * (under bash) no checking is done for utod so if you use it on the same file multiple times you will get \r\r\r\r\r\n. to recursively fix all files in a tree use dtoutree WARNING no check for binary files, this is meant for source trees and include trees only On Tue, 9 Sep 1997 12:21:47 -0400, you wrote: >To all, > >Thank you for the responses. > >I have resigned myself to the long and arduous task of using Borland's >FCONVERT.EXE to convert all of my configuration scripts from ANSI to OEM >format (strip out ). For the number of files I have, this appears >to be a long task. > >This closes out one problem, but makes me wonder, why do the GNU scripts >from the .tar.gz files at the main ftp site have in them >instead of just . They are identified as UNIX scripts, but appear >to have a PC flavor to them. Since I haven't edited them ("cat >{filename} | more" instead) I can't figure out where the came from >unless it is there to start. > >Eric M. Smith >telephone : (423) 229-2254 >profs/officevision : XGIB003 >internet -- business : erics AT eastman DOT com >internet -- personal : burnsun AT tricon DOT net > >Do not meddle in the affairs of wizards, for they are quick to anger. >Do not meddle in the affairs of dragons, for you are crunchy and taste >good with ketchup. > >- >For help on using this list (especially unsubscribing), send a message to >"gnu-win32-request AT cygnus DOT com" with one line of text: "help". > (jeffdbREMOVETHIS AT netzone DOT com) delete REMOVETHIS from the above to reply Mikey ----=_341de2651045788075358a9.MFSBCHJLHS Content-Type: application/octet-stream; name=dtou.c Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=dtou.c LyogQ29weXJpZ2h0IChDKSAxOTk1IERKIERlbG9yaWUsIHNlZSBDT1BZSU5HLkRKIGZvciBkZXRh aWxzICovCi8qIG1vZGlmaWVkIGZvciB1bml4aXNoIHBhdGhzLCBhbmQgZGlyZWN0IGNvbnZlcnNp b24gYnkKamVmZmRiQG5ldHpvbmUuY29tIE1pa2V5ICovIAojaW5jbHVkZSA8c3RkaW8uaD4KI2lu Y2x1ZGUgPHN5cy90eXBlcy5oPgojaW5jbHVkZSA8dXRpbWUuaD4KI2luY2x1ZGUgPGZjbnRsLmg+ CiNpbmNsdWRlIDxzeXMvc3RhdC5oPgojaW5jbHVkZSA8c3RkbGliLmg+CiNpbmNsdWRlIDxzdHJp bmcuaD4KI2luY2x1ZGUgPHVuaXN0ZC5oPgojaW5jbHVkZSA8ZGlyZW50Lmg+CiNkZWZpbmUgQlVG RlNJWkUgNDA5NgoKI2lmbmRlZiBPX0JJTkFSWQojICBkZWZpbmUgT19CSU5BUlkgMAojZW5kaWYK CnN0YXRpYyBpbnQKY3Z0KGNoYXIgKmZuYW1lLCBpbnQgaXNfZHRvdSkKewogIGludCBzZiwgZGYs IGlsLCBvbCwgZW5kOwogIHJlZ2lzdGVyIGNoYXIgKmlwdHIsICpvcHRyOwogIGNoYXIgaWJ1ZltC VUZGU0laRV0sIG9idWZbQlVGRlNJWkUgKiAyICsgMV0sIGN0cmx6WzFdOwogIGNoYXIgdGZuYW1l W0ZJTEVOQU1FX01BWF07CiAgc3RydWN0IHV0aW1idWYgZnRpbWU7CiAgc3RydWN0IHN0YXQgKm15 c3RhdCwgb2xkc3RhdDsKCiAgbXlzdGF0ID0gJm9sZHN0YXQ7CiAgaWYgKCpmbmFtZSA9PSAnLScp CiAgICB7CiAgICAgIHNmID0gMDsgCiAgICAgIGRmID0gMTsgCiAgICB9CiAgZWxzZQogICAgewoK ICAg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KCQkqb3B0cisrID0gKmlwdHIrKzsK CSAgICAgICAgaWwtLTsKCQlicmVhazsKCSAgICB9CgkgIH0KICAgICAgfQogICAgZWxzZQogICAg ICB7CiAgICAgICAgd2hpbGUoaWwgPiAwKQoJICB7CgkgICAgd2hpbGUgKCgqaXB0ciAhPSAnXG4n KSAmJiAoaWwgPiAwKSkKCSAgICAgIHsKCQkqb3B0cisrID0gKmlwdHIrKzsKCSAJaWwtLTsKCSAg ICAgIH0KCSAgICAgIGlmIChpbCkKCQl7CgkgICAgICAgICAgKm9wdHIrKyA9ICdccic7CgkgICAg ICAgICAgKm9wdHIrKyA9ICppcHRyKys7CgkgICAgICAgICAgb2wrKzsKCSAgICAgICAgICBpbC0t OwoJCX0KICAgICAgICAgICB9CiAgICAgIH0gCQogICAgd3JpdGUoZGYsIG9idWYsIG9sKTsKICAg IH0KICBpZiAoKmZuYW1lICE9ICctJykKICAgIHsgCgkgIGZzdGF0KHNmLCBteXN0YXQpOwoJICBm dGltZS5hY3RpbWUgPSBvbGRzdGF0LnN0X2F0aW1lOwoJICBmdGltZS5tb2R0aW1lID0gb2xkc3Rh dC5zdF9tdGltZTsKCSAgdXRpbWUodGZuYW1lLCAmZnRpbWUpOwoJICBjbG9zZShzZik7CgkgIGNs b3NlKGRmKTsKCSAgcmVtb3ZlKGZuYW1lKTsKCSAgcmVuYW1lKHRmbmFtZSwgZm5hbWUpOwogICAg fQogIHJldHVybiAwOwp9CgppbnQKbWFpbihpbnQgYXJnYywgY2hhciAqKmFyZ3YpCnsKICBpbnQg aTsKICBpbnQgaXNfZHRvdSA9IDA7CiAgaW50IHJ2ID0gMDsKICBjaGFyICp0ZW1wLCAqcHJvZ25h bWU7CgogIHByb2duYW1lID0gYXJndlswXTsKICB0ZW1wID0gc3RycmNocihwcm9nbmFtZSwgJy8n KTsKICBpZiAodGVtcCA9PSBOVUxMKQogICAgewogICAgdGVtcCA9IHByb2duYW1lOwogICAgfQog IGVsc2UKICAgIHsKICAgICsrdGVtcDsKICAgIH0KICBpZiAoc3RybGVuICh0ZW1wKSA+PSA0ICYm IHN0cmNtcCAodGVtcCArIHN0cmxlbiAodGVtcCkgLSA0LCAiLmV4ZSIpID09IDApCiAgICAqKHRl bXAgKyBzdHJsZW4gKHRlbXApIC0gNCkgPSAnXDAnOyAvKiBkdW1wIC5leGUgc3VmZml4IGlmIG5l Y2Vzc2FyeSAqLyAKCiAgaWYgKHN0cmNtcCAodGVtcCArIHN0cmxlbiAodGVtcCkgLSA0LCAiZHRv dSIpID09IDApCiAgICAgIGlzX2R0b3UgPSAxOwoKICBpZiAoYXJnYyA9PSAxKQoJewoJcnYgKz0g Y3Z0KChjaGFyICopIi1cMCIsIGlzX2R0b3UpOwoJcmV0dXJuIHJ2OwoJfQoKICBmb3IgKGFyZ2Mt LSwgYXJndisrOyBhcmdjOyBhcmdjLS0sIGFyZ3YrKykKICAgIHJ2ICs9IGN2dCgqYXJndiwgaXNf ZHRvdSk7CiAgcmV0dXJuIHJ2Owp9Cg== ----=_341de2651045788075358a9.MFSBCHJLHS Content-Type: application/octet-stream; name=dtoutree Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=dtoutree IyEvYmluL3NoCmZvciBmaWxlIGluICo7ZG8KICBpZiBbIC1kICRmaWxlIF07dGhlbgogICAgcHVz aGQgJGZpbGUKICAgICBkdG91dHJlZQogICAgcG9wZAogIGVsc2UKICAgICBkdG91ICRmaWxlOwog IGZpOwpkb25lCg== ----=_341de2651045788075358a9.MFSBCHJLHS-- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".