diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fa9cc5d --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +# FreeBSD Ports Makefile For 'twander' +# $Id: Makefile,v 1.1 2002/10/28 23:03:22 tundra Exp $ + +all: # Do nothing - this is a python script that needs no build + +install: + install -c -o root -g wheel -m 755 ./twander ${PREFIX}/bin + mkdir ${PREFIX}/share/doc/twander + install -c -o root -g wheel -m 644 ./twander.1.gz ${PREFIX}/man/man1 + install -c -o root -g wheel -m 644 ./twander-license.txt ${PREFIX}/share/doc/twander diff --git a/mktwander b/mktwander new file mode 100755 index 0000000..f8cbde5 --- /dev/null +++ b/mktwander @@ -0,0 +1,27 @@ +#!/bin/sh +# Build a release of twander +# $Id: mktwander,v 1.1 2002/10/28 23:03:23 tundra Exp $ + +PROGFILE="twander.py" +SUPPFILES="Makefile twander.1 twander.txt twander-license.txt" + +DIR="twander-"$1 + +if [ $# -ne 1 ] + then + echo "usage: mktwander version-number" + exit +fi + +mkdir $DIR +co -r$1 $PROGFILE +co $SUPPFILES +gzip *.1 +mv $PROGFILE $SUPPFILES $DIR +mv *.gz $DIR +rlog twander >$DIR/CHANGELOG.twander +tar -czvf $DIR.tar.gz $DIR +rm -rf $DIR +mv $DIR.tar.gz Releases + + diff --git a/twander-license.txt b/twander-license.txt new file mode 100644 index 0000000..3de038b --- /dev/null +++ b/twander-license.txt @@ -0,0 +1,80 @@ +$Id: twander-license.txt,v 1.1 2002/10/28 23:03:23 tundra Exp $ + +In order to use, study, modify, or copy 'twander', you must read and +agree to all the licensing terms below. If you do not agree with or +do not understand *ANYTHING* you see in this document, you are NOT +granted a license to use, study, modify, or copy 'twander'. By using, +studying, modifying, or copying 'twander', you are agreeing to all the +terms of the 'twander' LICENSE below in their entirety. + + + 'twander' LICENSE AGREEMENT + + +1) DEFINITIONS + +Throughout this Agreement the term 'twander' is used to mean: + +Anything included in the 'twander' software distribution package from +TundraWare Inc. This includes scripts, programs, documentation, license +text and all other files provided in that original software +distribution package. + +Throughout this Agreement the term "User" is used to mean +any person who is enagaged in any of the following activities: + + - Uses any files found in the 'twander' software distribution in any way. + - Reads the 'twander' documentation. + - Studies the 'twander' program source code or supporting files. + - Makes use of any part of the 'twander' software distribution for any + purpose. + - Duplicates and/or distributes the 'twander' software distribution. + +2) OWNERSHIP + +'twander' Is Copyright (c) 2002 TundraWare Inc., All Rights Reserved. + + +3) TERMS + +Permission is hereby granted to the User for the duplication and use +of 'twander' so long as ALL the following conditions are met: + + 1) The User of 'twander' understands and agrees that this is EXPERIMENTAL + SOFTWARE which is provided "AS-IS" with no warranties expressed + or implied by TundraWare Inc. + + 2) The User acknowledges 'twander' has NOT been tested for: + + a) Correct operation + b) Freedom from unintended consequences + c) Any operation or condition which might cause damage, + compromise, or disruption to the User's or other: + hardware, software, networks, or data, or which might + cause any breach of system security of such systems, + software, and networks. + + 3) By using 'twander' in any way, the User does so at their own risk and + agrees to hold TundraWare Inc. harmless for any damage, + direct or indirect, that this software may or does cause to + the User's computational environment, including, but not + limited to, the User's or others' hardware, software, network, + or data. THE USER FURTHER AGREES TO HOLD TUNDRAWARE + INC. HARMLESS FOR ANY ECONOMIC DAMAGE OR ANY OTHER ADVERSE + CONSEQUENCE, DIRECT OR INDIRECT, CAUSED BY THE USE OF 'twander'. + + 4) If duplicated and/or distributed, no fee beyond reasonable + duplication charges may be charged for 'twander'. No commercial + use of 'twander' which involves any remuneration beyond these + duplication charges is permitted. + + 5) Any distributed copies of 'twander' must include all the originally + provided software, documentation, and licensing information in + their original distribution format and packaging without any + modifications. + +By using any part or all of 'twander', you are agreeing to be bound by +this license. + +IF YOU DO NOT UNDERSTAND, OR CANNOT ABIDE BY ANY OF THESE CONDITIONS, +DO NOT USE 'twander'. diff --git a/twander.1 b/twander.1 new file mode 100644 index 0000000..b5e3b09 --- /dev/null +++ b/twander.1 @@ -0,0 +1,34 @@ +.TH twander 1 "TundraWare Inc." +.SH twander +twander \- Short Description +.SH SYNOPSIS +twander [-hv] +.SH DESCRIPTION +Long description + +.SH OPTIONS +.TP +.B -h +print this help information + +.TP +.B -v +print detailed version information. + +.SH OTHER +You must have a reasonably current version of \'python\' installed. + +.SH BUGS AND MISFEATURES +None known as of this release. + +.SH COPYRIGHT AND LICENSING +\'twander\' is Copyright(c) 2002 TundraWare Inc. For terms of use, see +the twander-license.txt file in the program distribution. If you +install \'twander\' on a FreeBSD system using the 'ports' mechanism, you +will also find this file in /usr/local/share/doc/twander. + +.SH AUTHOR +.nf +Tim Daneliuk +tundra@tundraware.com + diff --git a/twander.py b/twander.py new file mode 100755 index 0000000..40d714c --- /dev/null +++ b/twander.py @@ -0,0 +1,138 @@ +#!/usr/local/bin/python +# twander.py +# Copyright (c) 2002 TundraWare Inc. All Rights Reserved. + + +PROGNAME = "twander" +RCSID = "$Id: twander.py,v 1.1 2002/10/28 23:03:23 tundra Exp $" +VERSION = RCSID.split()[2] + + + + +############################################################ +### Variables User Might Change ### +############################################################ + +#------------------- Nothing Below Here Should Need Changing ------------------# + +############################################################ +### Imports ### +############################################################ + +import getopt +import sys + + +############################################################ +### Aliases & Redefinitions ### +############################################################ + + + +############################################################ +### Constants & Literals ### +############################################################ + + + +#################### +# Constants +#################### + +FALSE = 0 == 1 # Booleans +TRUE = not FALSE + + + +#################### +# Literals +#################### + + + +############################################################ +### Prompts, & Application Strings ### +############################################################ + + +#################### +# Error Messages +#################### + + + +#################### +# Informational Messages +#################### + + + +#################### +# Prompts +#################### + + + +############################################################ +### Global Variables & Data Structures ### +############################################################ + + + +#---------------------------Code Begins Here----------------------------------# + +############################################################ +### Object Base Class Definitions ### +############################################################ + + + +############################################################ +### Supporting Function Definitions ### +############################################################ + + +##### +# Print An Error Message +##### + +def errmsg(emsg): + print PROGNAME + " " + VERSION +" ERROR: " + emsg + +# End of 'errmsg()' + + +##### +# Print Usage Information +##### + +def usage(): + print PROGNAME + " " + VERSION + " - Copyright 2002, TundraWare Inc., All Rights Reserved\n" + print "usage: " + PROGNAME + " [-hv] where,\n" + print " -h print this help information" + print " -v print detailed version information" + +# End of 'usage()' + + +############################################################ +### Program Entry Point ### +############################################################ + +# Command line processing + +try: + opts, args = getopt.getopt(sys.argv[1:], '-hv') +except getopt.GetoptError: + usage() + sys.exit(1) + + +for opt, val in opts: + if opt == "-h": + usage() + sys.exit(0) + if opt == "-v": + print RCSID + sys.exit(0)