home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / gnu / tar.txt / tar-1.12 / tests / before < prev    next >
Text File  |  1997-04-25  |  230b  |  20 lines

  1. #! /bin/sh
  2. # Do common operations before a particular test.
  3.  
  4. mkdir tmp-$$
  5. cd tmp-$$
  6.  
  7. case $srcdir in
  8.   /*|~*) ;;
  9.   *) srcdir=../$srcdir ;;
  10. esac
  11.  
  12. out=
  13. err=
  14.  
  15. echo $0 > checking
  16. exec 1> stdout
  17. exec 2> stderr
  18.  
  19. PATH=..:../../src:$PATH
  20.