home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / tar-1.11.8-src.tgz / tar.out / fsf / tar / src / checktar.sh < prev    next >
Text File  |  1996-09-28  |  1KB  |  47 lines

  1. # Check if tar appears to works correctly.
  2. # Copyright (C) 1995 Free Software Foundation, Inc.
  3. # François Pinard <pinard@iro.umontreal.ca>, 1995.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. # Exit on all errors.
  20. set -e
  21.  
  22. ## ----------------- ##
  23. ## Initial cleanup.  ##
  24. ## ----------------- ##
  25.  
  26. rm -rf checkdir
  27. mkdir checkdir
  28. cd checkdir
  29.  
  30. echo "Checking `tar --version`"
  31.  
  32. ## --------------- ##
  33. ## No checks yet.  ##
  34. ## --------------- ##
  35.  
  36. echo "Useless try: no checking implemented yet"
  37.  
  38. ## --------------- ##
  39. ## Final cleanup.  ##
  40. ## --------------- ##
  41.  
  42. echo "Check successful"
  43.  
  44. cd ..
  45. rm -rf checkdir
  46. exit 0
  47.