#! /usr/bin/env python
########################################################################
#
#              gptool
#              package manipulation tool
#
# File:        $Source: /home/arnold/CVS/gnuton/script/gptool,v $
# Version:     $RCSfile: gptool,v $ $Revision: 1.2 $
# Copyright:   (C) 1999-2000, David Arnold.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#############################################################################
""" """
__version__ = "$Revision: 1.2 $"[11:-2]
__author__  = "d@pobox.com"

#############################################################################

import sys

from   GnutOS.Constants          import *
from   GnutOS.View               import *
from   GnutOS.ViewManager        import *
from   GnutOS.Classes            import Frame, Array, Binary

from   GnutOS.AppManager         import AppManager
from   GnutOS.StorageManager     import StorageManager
from   GnutOS.HardwareManager    import HardwareManager
from   GnutOS.MemoryManager      import MemoryManager
from   GnutOS.ViewManager        import ViewManager

from   GnutOS.devtest            import test

from   GnutOS                    import Globals


#############################################################################


#############################################################################

#############################################################################

if __name__ == "__main__":

    #-- decode and load a package file ;-)

    #-- read file data
    f = open(sys.argv[1])
    s = f.read()
    f.close()


    p = Package()
    p.unpack(s)


#############################################################################

USAGE = """%s -h | pkgfile

%s is the GnutOS package tool.  It understands the Newton package
format, and provides access to the various pieces of information
included in the package headers.

"""


#############################################################################

if __name__ == "__main__":

    args = sys.argv[1:]

    while args:
	arg = args[0]
	args = args[1:]

	if arg in ["-h", "--help"]:
	    print USAGE
	    sys.exit(0)

	elif 1:
	    pass


#############################################################################


