natanprog

tarinstall.sh

Oct 27th, 2025
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.70 KB | Source Code | 0 0
  1. #!/bin/sh
  2. #
  3. #  This library is part of the FirebirdSQL project
  4. #
  5. #  This library is free software; you can redistribute it and/or
  6. #  modify it under the terms of the GNU Lesser General Public
  7. #  License as published by the Free Software Foundation; either
  8. #  version 2.1 of the License, or (at your option) any later version.
  9. #  You may obtain a copy of the Licence at
  10. #  http://www.gnu.org/licences/lgpl.html
  11. #  
  12. #  As a special exception this file can also be included in modules
  13. #  with other source code as long as that source code has been
  14. #  released under an Open Source Initiative certificed licence.  
  15. #  More information about OSI certification can be found at:
  16. #  http://www.opensource.org
  17. #  
  18. #  This module is distributed in the hope that it will be useful,
  19. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21. #  GNU Lesser General Public Licence for more details.
  22. #  
  23. #  This module was created by members of the firebird development
  24. #  team.  All individual contributions remain the Copyright (C) of
  25. #  those individuals and all rights are reserved.  Contributors to
  26. #  this file are either listed below or can be obtained from a CVS
  27. #  history command.
  28. #
  29. #   Created by:  Mark O'Donohue <[email protected]>
  30. #
  31. #   Contributor(s):
  32. #  
  33. #
  34. #   $Id: tarinstall.sh.in,v 1.1.2.3 2004/01/29 13:37:33 alexpeshkoff Exp $
  35. #
  36.  
  37. # THe way this works is that the buildroot file is stored relative to the root
  38. # directory and a tar -xzf at root directory will restore all the files in
  39. # the position that we want them to be
  40.  
  41. OrigDir=`pwd`
  42.  
  43. cd /
  44.  
  45. tar -xzf "$OrigDir/buildroot.tar.gz"
  46.  
  47. cd "$OrigDir"
  48.  
Advertisement
Add Comment
Please, Sign In to add comment