Patch to generic-build-script for listing package files

Marcel Telka marcel@telka.sk
Sun Oct 26 07:25:00 GMT 2003


On 25.10.2003 20:17, Harold L Hunt II wrote:
> +list() {
> +  (cd ${instdir} && \
> +  find . -name "*" ! -type d | sed 's/\.\/\(.*\)/\1/' )

What about "find ! -type d | cut -c 2-" instead of
"find . -name "*" ! -type d | sed 's/\.\/\(.*\)/\1/'"?

Differences:
- less characters :-)
- filenames started with "." are listed too

> +}


Regards.

-- 
+-------------------------------------------+
| Marcel Telka   e-mail:   marcel@telka.sk  |
|                homepage: http://telka.sk/ |
|                jabber:   marcel@jabber.sk |
+-------------------------------------------+



More information about the Cygwin-apps mailing list