[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9210.0. "tar exclusion options do not work as documented" by AZUR::HUREZ (Connectivity & Computing Services @VBE. DTN 828-5159) Tue Mar 18 1997 09:18

    I'm trying to archive source files without SCCS libraries
    
    
        Work                    ProjHome
                              /    |    \     \
                          code  scripts  man   ...
                            |      |      |
                          SCCS   SCCS    SCCS
    
    
    cd $Work
    
    Neither of these will work (the SCCS's and their contents are always
    archived in addition to files in code, scripts and man catalogs):
    
    tar cvFf project.tar -C $ProjHome ./code ./scripts ./man
     (The F options is *supposed* to strip down SCCS libraries, according
      to the man page!)
    tar cvf project.tar -C $ProjHome \
        ./code -e ./code/SCCS ./scripts -e ./scripts/SCCS ./man -e ./man/SCCS
    tar cvf project.tar -C $ProjHome ./code ./scripts ./man -e SCCS
    
    I tried both /sbin/tar and /usr/bin/tar with the same failure.
    
    Any clue?
    
    Thanks,
    
    	-- Olivier.
    
T.RTitleUserPersonal
Name
DateLines
9210.1have you tried this yet ?ALFAM7::GOSEJACOBTue Mar 18 1997 09:5113
    re .0
    Hmmm, not exactly obvious but I think one of your problems is mixing
    options and arguments. Have you tried:
    
    tar cvf project.tar -C $ProjHome \
    	-e ./code/SCCS -e ./scripts/SCCS -e ./man/SCCS \
    	./code ./scripts ./man
    
    works for me on my 4.0B system.
    Cheers
    
    	Martin
    
9210.2Nope...AZUR::HUREZConnectivity & Computing Services @VBE. DTN 828-5159Wed Mar 19 1997 04:5410
    Thanks for the quick answer...
    
    My system is V3.2 214.  The command doesn't work on it (complains about
    -e not beeing a file or directory :-(
    
    It seems it's time to upgrade...
    
    Thanks,
    
    	-- Olivier.