Summary: | solaris only: tar '-C' not supported -> (g)make fails | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Daniel Franke <franke.daniel> |
Component: | general | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Daniel Franke
2003-05-17 14:49:41 UTC
See Bug #58145 also. "-C" means "change to that directory", is there a similar command line switch on solaris? There is a similar command (from solaris tar man-page): SYNOPSIS tar c [ bBeEfFhiklnopPqvwX [ 0-7 ] ] [ block ] [ tar- file ] [ exclude-file ] { -I include-file | -C directory | file | file } ... -C directory file Performs a chdir (see cd(1)) operation on directory and performs the c (create) or r (replace) operation on file. Use short relative path names for file. If file is `.', archive all files in directory. This option enables archiving files from multiple direc- tories not related by a close common parent. It seems that the command order is important. Using > tar -cf admin.tar admin/ -C . instead of > tar -C . -cf admin.tar admin/ works (at least I get a file named "admin.tar" containing the desired files). Hmm... from the man page I'd guess that the correct use of "-C" would be
> tar -cf admin.tar -C . admin/
Can you please try that? If it succeeds, I'll patch the Makefile.am so we can close this bug.
Thank you,
Harry
Subject: RE: solaris only: tar '-C' not supported -> (g)make fails It seems that it doesn't matter if > tar -cf admin.tar -C . admin or > tar -cf admin.tar -C . admin -C . but it does matter if > tar -cf admin.tar -C . admin or > tar -cf admin.tar -C . admin/ since the latter DOES NOT work. (tar: admin/: No such file or directory) Hope I helped Daniel okay, should be fixed in CVS now. Thanks for you help :) Yes, works fine :) |