commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] gr-build .cvsignore ChangeLog README buildit ch...


From: Eric Blossom
Subject: [Commit-gnuradio] gr-build .cvsignore ChangeLog README buildit ch...
Date: Mon, 02 Oct 2006 16:24:09 +0000

CVSROOT:        /sources/gnuradio
Module name:    gr-build
Changes by:     Eric Blossom <eb>       06/10/02 16:24:09

Removed files:
        .              : .cvsignore ChangeLog README buildit checkout 
                         for-all-dirs status up 

Log message:
        removed all code

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gr-build/.cvsignore?cvsroot=gnuradio&r1=1.1.1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/gr-build/ChangeLog?cvsroot=gnuradio&r1=1.5&r2=0
http://cvs.savannah.gnu.org/viewcvs/gr-build/README?cvsroot=gnuradio&r1=1.4&r2=0
http://cvs.savannah.gnu.org/viewcvs/gr-build/buildit?cvsroot=gnuradio&r1=1.11&r2=0
http://cvs.savannah.gnu.org/viewcvs/gr-build/checkout?cvsroot=gnuradio&r1=1.22&r2=0
http://cvs.savannah.gnu.org/viewcvs/gr-build/for-all-dirs?cvsroot=gnuradio&r1=1.4&r2=0
http://cvs.savannah.gnu.org/viewcvs/gr-build/status?cvsroot=gnuradio&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/gr-build/up?cvsroot=gnuradio&r1=1.1&r2=0

Patches:
Index: .cvsignore
===================================================================
RCS file: .cvsignore
diff -N .cvsignore
--- .cvsignore  22 Sep 2004 20:09:55 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,8 +0,0 @@
-gnuradio-core
-gnuradio-examples
-gr-audio-oss
-gr-mc4020
-gr-usrp
-gr-wxgui
-mc4020
-usrp

Index: ChangeLog
===================================================================
RCS file: ChangeLog
diff -N ChangeLog
--- ChangeLog   31 Mar 2006 19:07:52 -0000      1.5
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-2006-03-31  Eric Blossom  <address@hidden>
-
-       * README: updated to reflect mixed CVS and svn setup.
-       * up, status: new commands that work across both CVS and svn.
-
-2006-03-30  Eric Blossom  <address@hidden>
-
-       * for-all-dirs: now supports -c and -s options to restrict
-       traversal to cvs and svn checkouts respectively.
-       * checkout (svn_p): added support for checking out with svn.
-
-2005-12-12  Eric Blossom  <address@hidden>
-
-       * checkout: anonymous & developer checkout fixed to deal with
-       savannah reorg.  Thanks Greg!
-
-2005-07-01  Eric Blossom  <address@hidden>
-
-       * buildit: rewritten in python.  Now supports --prefix option.

Index: README
===================================================================
RCS file: README
diff -N README
--- README      31 Mar 2006 19:07:52 -0000      1.4
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,85 +0,0 @@
-#
-# Copyright 2004,2006 Free Software Foundation, Inc.
-# 
-# This file is part of GNU Radio
-# 
-# GNU Radio 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, or (at your option)
-# any later version.
-# 
-# GNU Radio 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 GNU Radio; see the file COPYING.  If not, write to
-# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-# 
-
-This directory contains a set of tools that ease working across all
-the CVS and subversion repositories and modules that compose GNU Radio.
-
-  ./checkout [--anon] [--exclude=PATTERN]
- 
-  checkout performs a CVS or svn checkout of all modules that compose GNU
-  Radio.  Depending on the value of the USER environment variable,
-  either an anonymous or developer checkout is performed.  Anonymous
-  checkouts return the same data, but changes can't be committed.
-  The checkouts are into subdirectories of the current dir.
-
-  Generally speaking, checkout only needs to be used once.  See
-  for-all-dirs for examples of cvs updates.
-
-  If you don't have a mc4020 board or a USRP you may want to use the
-  --exclude (equivalently -x) option:
-
-    ./checkout -x usrp -x mc4020
-
-
-
-  ./for-all-dirs [-s] [-c] <any shell command line...>
-
-  for-all-dirs executes the given shell command in all subdirectories.
-  If the -s option is given, only subdirectories checked out from
-  subversion are visited.  If the -c option is given only
-  subdirectories checked out from cvs are visited.  The order in which
-  the directories are visited is controlled by the contents of the
-  .buildpri file in each subdirectory.  The .buildpri files have
-  values such that the proper build order is obtained.
-
-  To build everything from scratch, first use the checkout command,
-  then execute:
-
-    ./for-all-dirs ../buildit
-
-  This performs the bootstrap, configure, make, make check, make
-  install sequence on each directory.
-
-  Another common use is to grab the latest changes from all the CVS
-  and svn repositories:
-
-    ./for-all-dirs ../up
-
-  To see what's changed, but not update anything:
-
-    ./for-all-dirs ../status
-
-
-Please note, unless you pass the -n flag, the buildit shell script
-uses the "sudo" command to perform the make install.  sudo will prompt
-for a password prior to performing the install.  If you haven't
-already, you'll need to setup sudo's configuration file, typically
-/etc/sudoers.
-
-I generally add myself to the group "wheel" (edit /etc/group), then
-uncomment this line in /etc/sudoers:
-
-  # Uncomment to allow people in group wheel to run all commands
-  %wheel  ALL=(ALL)       ALL
-
-
-
-Happy hacking!

Index: buildit
===================================================================
RCS file: buildit
diff -N buildit
--- buildit     23 Nov 2005 03:41:31 -0000      1.11
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,78 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-import os
-import os.path
-from optparse import OptionParser
-
-def main():
-    usage = "%prog [options]"
-    parser = OptionParser(usage=usage)
-    parser.add_option('-n', '--no-sudo', action='store_true', default=False,
-                      help="don't use sudo when installing")
-    parser.add_option('-p', '--prefix', type="string", default="/usr/local",
-                      help="pass --prefix=PREFIX to configure 
[default=/usr/local]")
-    parser.add_option('-j', '--jobs', type="int", default=None,
-                      help="set maximum number of parallel jobs for make")
-    parser.add_option('-v', '--verbose', action='store_true', default=False,
-                      help="enable verbose output")
-    parser.add_option('-T', '--build-from-tarballs', action='store_true', 
default=False,
-                      help="say we're building from tarballs (skip the 
bootstrap step)")
-    (options, args) = parser.parse_args ()
-    if len(args) != 0:
-        parser.print_help()
-        sys.exit(1)
-
-    # Ensure that prefix/lib{64,}/pkgconfig is at the head of the 
PKG_CONFIG_PATH
-    # environment variable  and that /usr/local/lib{64,}/pkgconfig is at the 
tail.
-    # We need the head so that the other gr-* modules know where to
-    # find gnuradio-core.  The tail is to avoid problems finding
-    # fftw3f in case the user hasn't already got PKG_CONFIG_PATH set.
-    t1 = os.path.join(options.prefix, 'lib64', 'pkgconfig')
-    t2 = os.path.join(options.prefix, 'lib', 'pkgconfig')
-    our_head = ':'.join((t1, t2))
-    t1 = os.path.join('/usr', 'local', 'lib64', 'pkgconfig')
-    t2 = os.path.join('/usr', 'local', 'lib', 'pkgconfig')
-    our_tail = ':'.join((t1, t2))
-    pkg_config_path = os.environ.get('PKG_CONFIG_PATH', None)
-    if pkg_config_path:
-        pkg_config_path = ':'.join((our_head, pkg_config_path, our_tail))
-    else:
-        pkg_config_path = ':'.join((our_head, our_tail))
-    os.environ['PKG_CONFIG_PATH'] = pkg_config_path
-
-    sudo = 'sudo '
-    if options.no_sudo:
-        sudo = ''
-        
-    if options.build_from_tarballs:
-        bootstrap = ''        # No bootstrap.  Everything should be already in 
the tarball
-    else:
-        bootstrap = './bootstrap &&\n'
-
-    if options.jobs:
-        jobs_arg = '-j %d ' % options.jobs
-    else:
-        jobs_arg = ''
-
-    cmdline = '%s./configure --prefix=%s &&\nmake %s &&\nmake check &&\n%smake 
install' % (
-        bootstrap, options.prefix, jobs_arg, sudo)
-
-    if options.verbose:
-        sys.stdout.write('export PKG_CONFIG_PATH=' + 
os.environ['PKG_CONFIG_PATH'] + '\n')
-        sys.stdout.write(cmdline + '\n')
-        sys.stdout.flush()
-
-    r = os.system(cmdline)
-    if r != 0:
-        return False
-
-    return True
-
-
-if __name__ == '__main__':
-    ok = main()
-    if ok:
-        sys.exit(0)
-    else:
-        sys.exit(1)

Index: checkout
===================================================================
RCS file: checkout
diff -N checkout
--- checkout    30 Jun 2006 15:59:56 -0000      1.22
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,148 +0,0 @@
-#!/usr/bin/env python
-# -*- Python -*-
-
-'''CVS and/or SVN checkout all GNU Radio modules.
-
-If the user is recognized as a developer with commit access, then a
-developer checkout is done, else an anonymous checkout is performed.
-'''
-
-import os
-import sys
-import re
-from optparse import OptionParser
-
-# key is module name, value is repository
-modules = {
-    'gnuradio-core' : 'savannah',
-    'gnuradio-examples' : 'savannah',
-    'gr-audio-alsa' : 'savannah',
-    'gr-audio-jack' : 'savannah',
-    'gr-audio-oss' : 'savannah',
-    'gr-audio-osx' : 'savannah',
-    'gr-audio-portaudio' : 'savannah',
-    'gr-comedi' : 'savannah',
-    'gr-mc4020' : 'savannah',
-    'gr-usrp' : 'savannah',
-    'gr-wxgui' : 'savannah',
-    'mc4020' : 'savannah',
-    'docs' : 'savannah',
-    'gr-howto-write-a-block' : 'savannah',
-    'gr-gsm-fr-vocoder' : 'savannah',
-    'gr-atsc' : 'savannah',
-    'gr-radio-astronomy' : 'savannah',
-#   'usrp' : 'sourceforge'
-    'usrp' : 'svnrepository'
-    }
-
-# Login name to CVS developer name
-developers = {
-    'eb'      : { 'savannah' : 'eb', 'sourceforge' : 'eblossom' },
-    'matt'    : { 'savannah' : 'mettus', 'sourceforge' : 'yootis' },
-    'n4hy'    : { 'savannah' : 'rwmcgwier', 'sourceforge' : 'rwmcgwier' },
-    'cswiger' : { 'savannah' : 'cswiger', 'sourceforge' : 'cswiger' },
-    'nldudok1' : { 'savannah' : 'nldudok1', 'sourceforge' : 'nldudok1' },
-    'mld'     : { 'savannah' : 'michaelld', 'sourceforge' : 'michaelld' },
-    'jcorgan' : { 'savannah' : 'jcorgan', 'sourceforge' : 'jcorgan' },
-    'trondeau' : { 'savannah' : 'trondeau1122', 'sourceforge' : 'trondeau1122' 
}
-    }
-
-
-cvs_d_option = {
-    'savannah' :    { 'anon'  : ':pserver:address@hidden:/sources/gnuradio',
-                      'devel' : ':ext:address@hidden:/sources/gnuradio' },
-    'sourceforge' : { 'anon'  : ':pserver:address@hidden:/cvsroot/opensdr',
-                      'devel' : 'address@hidden:/cvsroot/opensdr' }
-    }
-
-
-def svn_p(repository):
-    return repository in ('svnrepository',)
-
-def build_svn_path(repository, module):
-    if repository == 'svnrepository':
-        return 'http://usrp.svnrepository.com/svn/%s/trunk %s' % (module, 
module)
-    raise NotImplementedError, "Don't know how to build svn path for %s" % 
(repository,)
-
-def do_svn_checkout(repository, module):
-    cmd = 'svn co %s' % (build_svn_path(repository, module),)
-    doit(cmd)
-
-def doit (command):
-    # print "cmd: ", command
-    if os.system (command) != 0:
-        sys.stderr.write ("FAILED: %s\n" % (command,))
-        raise RuntimeError
-    
-def in_list (module, list):
-    for pattern in list:
-        if re.search (pattern, module):
-            return True
-    return False
-
-
-def checkout (force_anon, user, exclude_list, include_list, options):
-    anon = force_anon or not developers.has_key (user)
-
-    if anon:
-        sys.stderr.write ("Performing anonymous checkout...\n")
-        for (module, repository) in modules.iteritems():
-            if include_list and not in_list (module, include_list):
-                continue
-            if in_list (module, exclude_list):
-                continue
-
-            if svn_p(repository):
-                do_svn_checkout(repository, module)
-            else:
-                d_option = cvs_d_option[repository]['anon']
-                login_required = 0 and re.match (':pserver:', d_option)
-                if login_required:
-                    sys.stderr.write ("Press Enter at the Password prompt.\n")
-                    cmd = "cvs -d%s login" % (d_option,)
-                    doit (cmd)
-
-                cmd = "cvs -z3 -d%s co %s -P %s" % (d_option, ' 
'.join(options), module)
-                doit (cmd)
-    else:
-        sys.stderr.write ("Performing developer checkout...\n")
-        for (module, repository) in modules.iteritems():
-            if include_list and not in_list (module, include_list):
-                continue
-            if in_list (module, exclude_list):
-                continue
-            if svn_p(repository):
-                do_svn_checkout(repository, module)
-            else:
-                d_option = cvs_d_option[repository]['devel']  % 
developers[user][repository]
-                cmd = "cvs -z3 -d%s co %s -P %s" % (d_option, ' 
'.join(options), module)
-                doit (cmd)
-    
-    
-def main ():
-    if os.environ.has_key("USER"):
-        default_user = os.environ["USER"]
-    elif os.environ.has_key("LOGNAME"):
-        default_user = os.environ["LOGNAME"]
-    else:
-        default_user = None
-        
-    parser = OptionParser ()
-    parser.add_option ("-a", "--anon", action="store_true", default=False,
-                       help="Force anonymous checkout")
-    parser.add_option ("-u", "--user", type="string", default=default_user,
-                       help="specify user name (default is '%s')" % 
default_user)
-    parser.add_option ("-x", "--exclude", default=[],
-                       action="append", help="Exclude modules matching 
PATTERN", metavar="PATTERN")
-    parser.add_option ("-i", "--include", default=[],
-                       action="append", help="Include only modules matching 
PATTERN", metavar="PATTERN")
-    parser.add_option ("-O", "--options", default=[],
-                       action="append", help="Additional CVS co options", 
metavar="OPTIONS")
-
-    (options, args) = parser.parse_args ()
-
-    checkout (options.anon, options.user, options.exclude, options.include, 
options.options)
-
-
-if __name__ == '__main__':
-    main ()

Index: for-all-dirs
===================================================================
RCS file: for-all-dirs
diff -N for-all-dirs
--- for-all-dirs        30 Mar 2006 23:13:25 -0000      1.4
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,74 +0,0 @@
-#!/usr/bin/env python
-# -*- Python -*-
-
-import os
-import os.path
-import glob
-import sys
-
-stop_list = ['CVS', 'ignore', 'docs']
-
-def get_ordered_dir_list(dir_p):
-    dirs = []
-    top_dir = os.getcwd ()
-
-    for file in os.listdir (os.curdir):
-        dir = os.path.join (top_dir, file)
-        if not os.path.isdir (dir):
-            continue
-        if file in stop_list:
-            continue
-
-        if dir_p and not dir_p(dir):
-            continue
-        
-        pri_filename = os.path.join (dir, '.buildpri')
-        try:
-            f = open (pri_filename, 'r')
-            pri = int (f.readline ())
-            f.close ()
-        except:
-            pri = 1000
-        dirs.append ((pri, dir))
-    
-    dirs.sort ()
-    dirs = [d[1] for d in dirs]
-    return dirs
-
-
-def cvs_dir_p(dir):
-    return os.path.isdir(os.path.join(dir, 'CVS'))
-
-def svn_dir_p(dir):
-    return os.path.isdir(os.path.join(dir, '.svn'))
-
-def main ():
-    dir_predicate = None
-
-    if len(sys.argv) > 1:
-        if sys.argv[1] in ('-h', '-?', '--help'):
-            sys.stderr.write('usage: for-all-dirs [-c] [-s] command...\n')
-            sys.stderr.write('       -c : only traverse dirs from cvs 
checkouts\n')
-            sys.stderr.write('       -s : only traverse dirs from svn 
checkouts\n')
-            raise SystemExit, 0
-
-        if sys.argv[1] == '-c':
-            dir_predicate = cvs_dir_p
-            del sys.argv[1:2]
-        elif sys.argv[1] == '-s':
-            dir_predicate = svn_dir_p
-            del sys.argv[1:2]
-
-    dirs = get_ordered_dir_list(dir_predicate)
-    for dir in dirs:
-        sys.stdout.write (">>> %s\n" % dir)
-        sys.stdout.flush ()
-        os.chdir (dir)
-        if len (sys.argv) > 1:
-            exit_code = os.spawnvp (os.P_WAIT, sys.argv[1], sys.argv[1:])
-            if exit_code != 0:
-                sys.stderr.write (">>> build FAILED in %s\n" % (dir,))
-                sys.exit (1)
-
-if __name__ == '__main__':
-    main ()

Index: status
===================================================================
RCS file: status
diff -N status
--- status      31 Mar 2006 18:59:53 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-if [ -d CVS ]
-then
-  cvs -nq up
-elif [ -d .svn ]
-then
-  svn status
-fi

Index: up
===================================================================
RCS file: up
diff -N up
--- up  31 Mar 2006 18:59:53 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-if [ -d CVS ]
-then
-  cvs -q up
-elif [ -d .svn ]
-then
-  svn up
-fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]