This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: tar question: Solved


Thanks All!

 > Here is my command line:
> >          @tar -zcvf $(TARBALL) Makefile *.c *.h ./tracer/* \
> >             License Readme version 
> ./monitor/*  --exclude=./monitor/monitor.o
>
>Use the following instead:
>
>     tar -zcvf $(TARBALL) Makefile *.c *.h ./tracer/* \
>         License Readme version ./monitor --exclude=./monitor/monitor.o
>                                         ^
>                                         +--- see below
>
>Note that there is no "/*" after "./monitor" above.

This worked.

>You are explicitly specifying "./monitor/monitor.o" on the commandline
>via "./monitor/*", so the exclude option is being ignored.  Hence, the
>guess in my previous email was correct.

I didn't realize that dir/* explicitly listed the files into the command 
line.  Thinking about it though, this does make sense.

Who is incharge of documentation?  Perhaps this type of example could help 
others down the road.

Thanks,

Matt Minnis
Cthulhu for President. Why settle for a lesser evil?

=========================================================
Preferred Resources          (314) 567-7600 phone
701 Emerson rd.              (314) 993-6699 fax
Suite 475		       mminnis@prefres.com
St. Louis, MO
63141
=========================================================


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]