CPSC 405/605 Computer Graphics
Spring 2000
TTh 12:30--1:45 Jordan G032
tar'ring instructions <http://andrewd.ces.clemson.edu/courses/cpsc605/spring00/tar.html>

Before electronically submitting your project code, use tar and gzip to create a compressed "tape" archive file of your project directory:

  1. First make sure that your code is sitting in its own subdirectory, e.g., in my case, my code is in my ~/rainbow/research/x11/gtk-aw directory:
    	[andrewd@hook] ~/rainbow/research/x11/gtk-aw > ls
    	Backup/            Makefile.nolocal   aw.o               main.h
    	Backup.5/          Makefile.sgi       glarea.c           main.o
    	Backup.6/          alias/             glarea.h           mlib/
    	Backup.7/          atest*             glarea.o           obj/
    	Backup.oneObject/  atest.c            globals.c          scene.c
    	Makefile           atest.o            globals.h          scene.h
    	Makefile.linux     aw.c               main*              scene.o
    	Makefile.local     aw.h               main.c
    	[andrewd@hook] ~/rainbow/research/x11/gtk-aw > 
    	
  2. Do a make clean to clean up all the *.o and executable files (to reduce space):
    	[andrewd@hook] ~/rainbow/research/x11/gtk-aw > make clean
            cd mlib; make clean
            rm -f *.o core main libmlib.a
            rm -f *.o core main atest
    	[andrewd@hook] ~/rainbow/research/x11/gtk-aw > 
    	
  3. Change directories to one above the current project directory, e.g.:
    	[andrewd@hook] ~/rainbow/research/x11/gtk-aw > cd ../
    	[andrewd@hook] ~/rainbow/research/x11 >
    	
  4. Create the tar file. The command syntax is:
    	tar cvf <file.tar> <directory>
    	
    where <file.tar> is the tar file being created, and <directory> is the directory which will get archived (stuffed) into the single tar file:
    	[andrewd@hook] ~/rainbow/research/x11 > tar cvf gtk-aw.tar gtk-aw
    	a gtk-aw/Backup/Makefile 3 blocks
    	a gtk-aw/Backup/Makefile.linux 3 blocks
    	a gtk-aw/Backup/Makefile.local 3 blocks
    	a gtk-aw/Backup/Makefile.nolocal 3 blocks
    	a gtk-aw/Backup/Makefile.sgi 3 blocks
    	a gtk-aw/Backup/atest.c 3 blocks
    	...
    	
    You'll see a list of a <directory/file> additions being assembled into the tar file. You should now have the file <file.tar>.
  5. Compress the tar file using gzip:
    	[andrewd@hook] ~/rainbow/research/x11 > gzip gtk-aw.tar
    	[andrewd@hook] ~/rainbow/research/x11 >
    	
    You'll now see the file <file.tar.gz>. This is the file you want to submit electronically.