From 6ca1679c3499513789132441fb7f8b7a89efe5e2 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Fri, 27 May 2011 01:04:36 -0600 Subject: [PATCH] LU-365 cleanup old irrelevant files Remove some scripts related to CVS and old TSP inspection process. Remove some ancient files related to UOSS on Solaris. Change-Id: I4d462b7679cac1e4b0b14c0629623969bd745b99 Signed-off-by: Andreas Dilger Reviewed-on: http://review.whamcloud.com/860 Tested-by: Hudson Reviewed-by: Brian J. Murrell Reviewed-by: Oleg Drokin --- build/branch.sh | 55 ------------------------------------ build/diffatt.sh | 57 -------------------------------------- build/misc/templates/file_header.c | 41 --------------------------- build/pkginfo | 53 ----------------------------------- build/prototype | 51 ---------------------------------- 5 files changed, 257 deletions(-) delete mode 100755 build/branch.sh delete mode 100755 build/diffatt.sh delete mode 100644 build/misc/templates/file_header.c delete mode 100644 build/pkginfo delete mode 100644 build/prototype diff --git a/build/branch.sh b/build/branch.sh deleted file mode 100755 index 0b9b1cd..0000000 --- a/build/branch.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -e -CVS=${CVS:-cvs} - -progname=${0##*/} - -if [ $# -lt 2 -o $# -gt 3 ]; then - echo "This creates a new branch in CVS. Usage: $progname parent child " - exit -fi - -parent=$1 -child=$2 -CHILD=`echo $child | sed -e "s/^b_//" | tr "[a-z]" "[A-Z]"` -dir=${3:-.} -if [ ! -d $dir ]; then - echo >&2 "${progname}: directory '$dir' does not exist." - exit 1 -fi -module=$(basename $(<$dir/CVS/Repository)) - -if [ "$module" = "lustre" ]; then - echo >&2 "${progname}: You probably want to branch lustre or lnet." - echo >&2 "${progname}: Try using ${0} $parent $child lustre" - exit 1 -fi - -case $parent in - HEAD) : ;; - b_*|b1*) : ;; - *) parent="b_$parent" ;; -esac -case $child in - HEAD) : ;; - b_*|b1*) : ;; - *) child="b_$child" -esac - -#if [ "$parent" != "HEAD" -a -f $dir/CVS/Tag ]; then - # put in separate condition as bash evaluates all conditions unlike C -# if [ "`cat $dir/CVS/Tag`" != "T$parent" ]; then -# echo "This script must be run within the $parent branch" -# exit 1 -# fi -#fi - -echo parent: $parent CHILD: $CHILD child: $child date: $date - -echo -n "tagging $parent as '${CHILD}_BASE' ...." -$CVS rtag -r $parent ${CHILD}_BASE $module -echo "done" -echo -n "branching $child at ${CHILD}_BASE' ...." -$CVS rtag -b -r ${CHILD}_BASE $child $module -echo -n "updating $dir to $child ...." -$CVS update -r $child $dir -echo "done" diff --git a/build/diffatt.sh b/build/diffatt.sh deleted file mode 100755 index e23d79a..0000000 --- a/build/diffatt.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -# diffatt.sh - generate inspection template for attachment -if [ -z "$1" ]; then - cat - 1>&2 <<- USAGE - usage: $0 [-k] {attachment} [attachment ...] - -k: keep attachment(s) for editing (delete otherwise) - attachment is an attachment number or a local patch filename - USAGE - exit 1 -fi - -export LANG=C -BUGZILLA=https://bugzilla.lustre.org/attachment.cgi -TMP=${TMP:-/tmp} - -[ "$1" = "-k" ] && KEEP=yes && shift - -FILE=$(mktemp -t) - -for ATT in $*; do - DO_KEEP=$KEEP - if [ -f "$ATT" ]; then - PATCH=$ATT - BUG=N - DO_KEEP=yes - else - BUG=$(wget --no-check-certificate -O - \ - $BUGZILLA?id=$ATT\&action=edit 2> /dev/null | - perl -nle 'print $1 if /Details for Bug (\d+)/' -) - PATCH=$TMP/att$ATT.patch - wget --no-check-certificate -O $PATCH \ - $BUGZILLA?id=$ATT 2> /dev/null - fi - - grep "not authorized" $PATCH && continue - - diffstat $PATCH | tee $FILE - LOC=$(awk '/insertion/ { print $4 }' $FILE) - [ -z "$LOC" ] && LOC=$(awk '/deletion/ { print $4 }' $FILE) - - # if it isn't a patch, just count all of the lines - [ -z "$LOC" ] && $(grep -q "0 files changed" $FILE) && - LOC=$(cat $PATCH | wc -l) - - tee -a $PATCH <<- EOF - Inspection Type: CODE - Defect Count: N - Size: $LOC LOC - Developer: @sun.com - Inspector: $USER@sun.com - Inspection duration: N min - Bug: $BUG - Date: $(date +%Y-%m-%d) - EOF - - [ "$DO_KEEP" = "yes" ] || rm $PATCH -done diff --git a/build/misc/templates/file_header.c b/build/misc/templates/file_header.c deleted file mode 100644 index 7b60d76..0000000 --- a/build/misc/templates/file_header.c +++ /dev/null @@ -1,41 +0,0 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * - * GPL HEADER START - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 only, - * as published by the Free Software Foundation. - * - * 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 version 2 for more details (a copy is included - * in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU General Public License - * version 2 along with this program; If not, see - * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. - * - * GPL HEADER END - */ -/* - * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. - * Use is subject to license terms. - */ -/* - * This file is part of Lustre, http://www.lustre.org/ - * Lustre is a trademark of Sun Microsystems, Inc. - * - * FILENAME - * - * DESCRIPTION - * - * Author: AUTHOR - */ diff --git a/build/pkginfo b/build/pkginfo deleted file mode 100644 index f3d5d38..0000000 --- a/build/pkginfo +++ /dev/null @@ -1,53 +0,0 @@ -# GPL HEADER START -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 only, -# as published by the Free Software Foundation. -# -# 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 version 2 for more details (a copy is included -# in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU General Public License -# version 2 along with this program; If not, see -# http://www.sun.com/software/products/lustre/docs/GPLv2.pdf -# -# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, -# CA 95054 USA or visit www.sun.com if you need additional information or -# have any questions. -# -# GPL HEADER END -# -# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. -# Use is subject to license terms. -# -# This file is part of Lustre, http://www.lustre.org/ -# Lustre is a trademark of Sun Microsystems, Inc. -# - -# Package CFSuoss -# - -PKG="CFSuoss" -NAME="Object Storage Server" -ARCH="ISA" -VERSION="Beta" -SUNW_PRODNAME="SunOS" -SUNW_PRODVERS="RELEASE/VERSION" -SUNW_PKGTYPE="usr" -MAXINST="1000" -CATEGORY="system" -DESC="Lustre Object Storage Server and utilities" -VENDOR="Sun Microsystems, Inc." -HOTLINE="Please contact your local service provider" -EMAIL="" -CLASSES="none" -BASEDIR=/ -SUNW_PKGVERS="1.1" -SUNW_PKG_ALLZONES="true" -SUNW_PKG_HOLLOW="false" -SUNW_PKG_THISZONE=" diff --git a/build/prototype b/build/prototype deleted file mode 100644 index 95d8c7a..0000000 --- a/build/prototype +++ /dev/null @@ -1,51 +0,0 @@ -# GPL HEADER START -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 only, -# as published by the Free Software Foundation. -# -# 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 version 2 for more details (a copy is included -# in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU General Public License -# version 2 along with this program; If not, see -# http://www.sun.com/software/products/lustre/docs/GPLv2.pdf -# -# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, -# CA 95054 USA or visit www.sun.com if you need additional information or -# have any questions. -# -# GPL HEADER END -# -# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. -# Use is subject to license terms. -# -# This file is part of Lustre, http://www.lustre.org/ -# Lustre is a trademark of Sun Microsystems, Inc. -# - -# Package CFSuoss - -# packaging files -i pkginfo -d none etc/fs 755 root sys -d none etc/fs/lustre 755 root sys -f none etc/fs/lustre/mount=../lustre/utils/mount.lustre 555 root sys -d none usr/lib/fs 755 root sys -d none usr/lib/fs/lustre 755 root sys -#s none usr/lib/fs/lustre/mount=../../../../etc/fs/lustre/mount -#f none usr/lib/fs/lustre/mkfs=../lustre/utils/mkfs.lustre 555 root bin -#s none usr/bin/mkfs.lustre=../lib/fs/lustre/mkfs -#f none usr/lib/fs/lustre/tunefs=../lustre/utils/tunefs.lustre 555 root bin -f none usr/lib/fs/lustre/lustre_uoss=../lustre/utils/lustre_uoss 555 root bin -s none usr/bin/lustre_uoss=../../usr/lib/fs/lustre/lustre_uoss -#f none usr/lib/fs/lustre/lustre_echoserver=../lustre/utils/lustre_echoserver 555 root bin -#s none usr/bin/lustre_echoserver=../../usr/lib/fs/lustre/lustre_echoserver -f none usr/lib/fs/lustre/readme.txt=../lustre/utils/uoss.readme.txt 444 root bin -f none usr/lib/libzpool.so.1=$(DMU_SRC)/usr/src/lib/libzpool/i386/libzpool.so.1 755 root bin -s none usr/lib/libzpool.so=libzpool.so.1 -- 1.8.3.1