Remove CVSROOT directory.

This stuff is CVS related and has no reason to stay now.
This commit is contained in:
Jean-Paul Chaput 2014-02-20 13:44:36 +01:00
parent 4c5d439d59
commit 621987703a
18 changed files with 0 additions and 945 deletions

View File

@ -1,20 +0,0 @@
# The "checkoutlist" file is used to support additional version controlled
# administrative files in $CVSROOT/CVSROOT, such as template files.
#
# The first entry on a line is a filename which will be checked out from
# the corresponding RCS file in the $CVSROOT/CVSROOT directory.
# The remainder of the line is an error message to use if the file cannot
# be checked out.
#
# File format:
#
# [<whitespace>]<filename><whitespace><error message><end-of-line>
#
# comment lines begin with '#'
postconfig "ERRRROR : a 'checkoutlist' was not found"
posttaginfo "ERRRROR : a 'checkoutlist' was not found"
fastinstool "ERRRROR : a 'checkoutlist' was not found"
instool "ERRRROR : a 'checkoutlist' was not found"
updatelibmk "ERRRROR : a 'checkoutlist' was not found"

View File

@ -1,15 +0,0 @@
# The "commitinfo" file is used to control pre-commit checks.
# The filter on the right is invoked with the repository and a list
# of files to check. A non-zero exit of the filter program will
# cause the commit to be aborted.
#
# The first entry on a line is a regular expression which is tested
# against the directory that the change is being committed to, relative
# to the $CVSROOT. For the first match that is found, then the remainder
# of the line is the name of the filter to run.
#
# If the repository name does not match any of the regular expressions in this
# file, the "DEFAULT" line is used, if it is specified.
#
# If the name "ALL" appears as a regular expression it is always used
# in addition to the first matching regex or "DEFAULT".

View File

@ -1,14 +0,0 @@
# Set this to "no" if pserver shouldn't check system users/passwords
#SystemAuth=no
# Put CVS lock files in this directory rather than directly in the repository.
#LockDir=/var/lock/cvs
# Set `TopLevelAdmin' to `yes' to create a CVS directory at the top
# level of the new working directory when using the `cvs checkout'
# command.
#TopLevelAdmin=no
# Set `LogHistory' to `all' or `TOFEWGCMAR' to log all transactions to the
# history file, or a subset as needed (ie `TMAR' logs all write operations)
#LogHistory=TOFEWGCMAR

View File

@ -1,79 +0,0 @@
# Ignoring files via cvsignore
#
# There are certain file names that frequently occur inside your working copy, but that you don't want to put under CVS control.
# Examples are all the object files that you get while you compile your sources. Normally, when you run `cvs update', it prints a
# line for each file it encounters that it doesn't know about (see section update output).
#
# CVS has a list of files (or sh(1) file name patterns) that it should ignore while running update, import and release. This list is
# constructed in the following way.
#
# The list is initialized to include certain file name patterns: names associated with CVS administration, or with other common
# source control systems; common names for patch files, object files, archive files, and editor backup files; and other names
# that are usually artifacts of assorted utilities. Currently, the default list of ignored file name patterns is:
#
# RCS SCCS CVS CVS.adm
# RCSLOG cvslog.*
# tags TAGS
# .make.state .nse_depinfo
# *~ #* .#* ,* _$* *$
# *.old *.bak *.BAK *.orig *.rej .del-*
# *.a *.olb *.o *.obj *.so *.exe
# *.Z *.elc *.ln
# core
#
# Pas chez moi :
#
# #*
# *$
# *.Z
# *.elc
# *.exe
# *.ln
# *.obj
# *.olb
# *.old
# *.orig
# *.rej
# ,*
# .#*
# _$*
#
# The per-repository list in `$CVSROOT/CVSROOT/cvsignore' is appended to the list, if that file exists.
# The per-user list in `.cvsignore' in your home directory is appended to the list, if it exists.
# Any entries in the environment variable $CVSIGNORE is appended to the list.
# Any `-I' options given to CVS is appended.
# As CVS traverses through your directories, the contents of any `.cvsignore' will be appended to the list. The patterns
# found in `.cvsignore' are only valid for the directory that contains them, not for any sub-directories.
#
# In any of the 5 places listed above, a single exclamation mark (`!') clears the ignore list. This can be used if you want to store
# any file which normally is ignored by CVS.
#
!
CVS
CVS.adm
RCS
RCSLOG
SCCS
TAGS
tags
*.bak
*.BAK
*.o
*.a
*.so
*~
cvslog.*
core
.del-*
.make.state
.nse_depinfo
.*.swp
Makefile.in
aclocal.m4
configure
missing
mkinstalldirs
install-sh
# --- EOF ---

View File

@ -1,127 +0,0 @@
# This file describes wrappers and other binary files to CVS.
#
# Wrappers are the concept where directories of files are to be
# treated as a single file. The intended use is to wrap up a wrapper
# into a single tar such that the tar archive can be treated as a
# single binary file in CVS.
#
# To solve the problem effectively, it was also necessary to be able to
# prevent rcsmerge from merging these files.
#
# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers)
#
# wildcard [option value][option value]...
#
# where option is one of
# -f from cvs filter value: path to filter
# -t to cvs filter value: path to filter
# -m update methodology value: MERGE or COPY
#
# and value is a single-quote delimited value.
#
# For example:
# #---------- bin extensions
# a
# arj
# bin
# bmp
# box
# cal
# cdr
# dat
# db
# dbf
# der
# dic
# dll
# doc
# dvi
# elc
# exe
# fmt
# gif
# gz
# jbf
# jpeg
# jpg
# lbm
# lib
# o
# pdf
# pgp
# pict
# png
# ppt
# ps
# psp
# qx31
# rpm
# sbl
# so
# tar
# tgz
# tif
# tiff
# wav
# xls
# xpm
# zip
# vor
# sdw
# sdb
# sym
# sld
*.[Aa] -k b -m COPY
*.[Aa][Rr][Jj] -k b -m COPY
*.[Bb][Ii][Nn] -k b -m COPY
*.[Bb][Mm][Pp] -k b -m COPY
*.[Bb][Oo][Xx] -k b -m COPY
*.[Cc][Aa][Ll] -k b -m COPY
*.[Cc][Dd][Rr] -k b -m COPY
*.[Dd][Aa][Tt] -k b -m COPY
*.[Dd][Bb] -k b -m COPY
*.[Dd][Bb][Ff] -k b -m COPY
*.[Dd][Ee][Rr] -k b -m COPY
*.[Dd][Ii][Cc] -k b -m COPY
*.[Dd][Ll][Ll] -k b -m COPY
*.[Dd][Oo][Cc] -k b -m COPY
*.[Dd][Vv][Ii] -k b -m COPY
*.[Ee][Ll][Cc] -k b -m COPY
*.[Ee][Xx][Ee] -k b -m COPY
*.[Ff][Mm][Tt] -k b -m COPY
*.[Gg][Ii][Ff] -k b -m COPY
*.[Gg][Zz] -k b -m COPY
*.[Jj][Bb][Ff] -k b -m COPY
*.[Jj][Pp][Ee][Gg] -k b -m COPY
*.[Jj][Pp][Gg] -k b -m COPY
*.[Ll][Bb][Mm] -k b -m COPY
*.[Ll][Ii][Bb] -k b -m COPY
*.[Oo] -k b -m COPY
*.[Pp][Dd][Ff] -k b -m COPY
*.[Pp][Gg][Pp] -k b -m COPY
*.[Pp][Ii][Cc][Tt] -k b -m COPY
*.[Pp][Nn][Gg] -k b -m COPY
*.[Pp][Pp][Tt] -k b -m COPY
*.[Pp][Ss] -k b -m COPY
*.[Pp][Ss][Pp] -k b -m COPY
*.[Qq][Xx][33][11] -k b -m COPY
*.[Rr][Pp][Mm] -k b -m COPY
*.[Ss][Bb][Ll] -k b -m COPY
*.[Ss][Oo] -k b -m COPY
*.[Tt][Aa][Rr] -k b -m COPY
*.[Tt][Gg][Zz] -k b -m COPY
*.[Tt][Ii][Ff] -k b -m COPY
*.[Tt][Ii][Ff][Ff] -k b -m COPY
*.[Ww][Aa][Vv] -k b -m COPY
*.[Xx][Ll][Ss] -k b -m COPY
*.[Xx][Pp][Mm] -k b -m COPY
*.[Zz][Ii][Pp] -k b -m COPY
*.[Vv][Oo][Rr] -k b -m COPY
*.[Ss][Dd][Ww] -k b -m COPY
*.[Ss][Dd][Bb] -k b -m COPY
*.[Ss][Yy][Mm] -k b -m COPY
*.[Ss][Ll][Dd] -k b -m COPY

View File

@ -1,21 +0,0 @@
# The "editinfo" file is used to allow verification of logging
# information. It works best when a template (as specified in the
# rcsinfo file) is provided for the logging procedure. Given a
# template with locations for, a bug-id number, a list of people who
# reviewed the code before it can be checked in, and an external
# process to catalog the differences that were code reviewed, the
# following test can be applied to the code:
#
# Making sure that the entered bug-id number is correct.
# Validating that the code that was reviewed is indeed the code being
# checked in (using the bug-id number or a seperate review
# number to identify this particular code set.).
#
# If any of the above test failed, then the commit would be aborted.
#
# Actions such as mailing a copy of the report to each reviewer are
# better handled by an entry in the loginfo file.
#
# One thing that should be noted is the the ALL keyword is not
# supported. There can be only one entry that matches a given
# repository.

View File

@ -1,47 +0,0 @@
#!/bin/sh
#DATE=`date +"%Y.%m.%d_%H.%M.%S"`
DATE=`date +"%Y.%m.%d"`
INSTALL_FROM=/users/soft5/newlabo/test/alliance
INSTALL_TO=/users/soft5/newlabo/alliance
COPYTHIS=\*
#COPYTHIS=asimut
cd $INSTALL_FROM/archi
for ARCHI in Linux SunOS Solaris
do
for FILE in $INSTALL_FROM/archi/$ARCHI/bin/$COPYTHIS
do
# echo %%%%%% $FILE
cp -f $FILE $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`.$DATE
chmod ug+rw $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`.$DATE
ln -f -s $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`.$DATE $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`
chmod ug+rw $INSTALL_TO/archi/$ARCHI/bin/`basename $FILE`
done
for TRUC in $INSTALL_FROM/archi/$ARCHI/lib/$COPYTHIS
do
# echo %%%%%% $TRUC
cp -f $TRUC $INSTALL_TO/archi/$ARCHI/lib/`basename $TRUC`
chmod ug+rw $INSTALL_TO/archi/$ARCHI/lib/`basename $TRUC`
done
for TRUC in $INSTALL_FROM/archi/$ARCHI/include/$COPYTHIS
do
# echo %%%%%% $TRUC
cp -f $TRUC $INSTALL_TO/archi/$ARCHI/include/`basename $TRUC`
chmod ug+rw $INSTALL_TO/archi/$ARCHI/include/`basename $TRUC`
done
done
# Sanity checks
echo "Launching chgrp and chmod ..."
chmod -R ug+w /users/soft5/newlabo/alliance
chgrp -R alliance /users/soft5/newlabo/alliance
echo "Il faut faire ranlib..."

View File

@ -1,22 +0,0 @@
#!/bin/sh
#
# Filename: instool
# Copyright (C) 1999, 2000 Czo <Olivier.Sirol@lip6.fr>
# License: GPL (http://www.gnu.org/copyleft/gpl.html)
# Started: Feb 2002
# Last Change: Wednesday 27 February 2002, 11:31
# Edit Time: 0:15:25
# Description:
#
# $Id: instool,v 1.29 2002/02/27 10:32:24 czo Exp $
#
echo "Instool est desactivé."
echo ""
echo "Il faut re ecrire un truc du genre : "
echo "cd tmp"
echo "cvs co toto"
echo "configure --prefix=/asim/alliance/Linux"
echo "make install"
echo ""

View File

@ -1,25 +0,0 @@
# The "loginfo" file is used to control where "cvs commit" log information is
# sent. The first entry on a line is a regular expression which is tested
# against the directory that the change is being made to, relative to the
# $CVSROOT. For the first match that is found, the remainder of the line is a
# filter program that should expect log information on its standard input
#
# If the repository name does not match any of the regular expressions in the
# first field of this file, the "DEFAULT" line is used, if it is specified.
#
# If the name "ALL" appears as a regular expression it is always used
# in addition to the first matching regex or "DEFAULT".
#
# The filter program may use one and only one "%s" modifier (ala printf). If
# such a "%s" is specified in the filter program, a brief title is included
# (as one argument, enclosed in single quotes) showing the relative directory
# name and listing the modified file names.
#
# For example:
#DEFAULT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
#ALL (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-commit
#^CVSROOT (echo ""; who am i; echo %s; date; cat) >> $CVSROOT/CVSROOT/log-cvsroot
#ALL (date ; cat ; (sleep 2 ; cd /users/outil/alliance/latest ; cvs -q update -d ) &) >> $CVSROOT/CVSROOT/log-latest 2>&1
ALL ( cat > /dev/null 2>&1 ; echo "Sur Solaris, utilisez /usr/ucb/mail car /bin/mail ne comprends pas le switch '-s subject'. Pour ce faire mettez '/usr/ucb' avant '/bin' dans votre PATH" )
ALL /users/outil/alliance/cvsroot/CVSROOT/postconfig

View File

@ -1,26 +0,0 @@
# Three different line formats are valid:
# key -a aliases...
# key [options] directory
# key [options] directory files...
#
# Where "options" are composed of:
# -i prog Run "prog" on "cvs commit" from top-level of module.
# -o prog Run "prog" on "cvs checkout" of module.
# -e prog Run "prog" on "cvs export" of module.
# -t prog Run "prog" on "cvs rtag" of module.
# -u prog Run "prog" on "cvs update" of module.
# -d dir Place module in directory "dir" instead of module name.
# -l Top-level directory only -- do not recurse.
#
# NOTE: If you change any of the "Run" options above, you'll have to
# release and re-checkout any working directories of these modules.
#
# And "directory" is a path to a directory relative to $CVSROOT.
#
# The "-a" option specifies an alias. An alias is interpreted as if
# everything on the right of the "-a" had been typed on the command line.
#
# You can encode a module within a module by using the special '&'
# character to interpose another module into the current module. This
# can be useful for creating a module that consists of many directories
# spread out over the entire source repository.

View File

@ -1,16 +0,0 @@
# The "notify" file controls where notifications from watches set by
# "cvs watch add" or "cvs edit" are sent. The first entry on a line is
# a regular expression which is tested against the directory that the
# change is being made to, relative to the $CVSROOT. If it matches,
# then the remainder of the line is a filter program that should contain
# one occurrence of %s for the user to notify, and information on its
# standard input.
#
# "ALL" or "DEFAULT" can be used in place of the regular expression.
#
# For example:
#ALL mail %s -s "CVS notification"
ALL mail %s -s "ALC : CVS notify"

View File

@ -1,89 +0,0 @@
#!/bin/sh
#
# Filename: postconfig
# Copyright (C) 1999, 2000 Czo <Olivier.Sirol@lip6.fr>
# License: GPL (http://www.gnu.org/copyleft/gpl.html)
# Started: Sept 1999
# Last Change: Thursday 24 October 2002, 12:04
# Edit Time: 1:37:07
# Description:
#
# $Id: postconfig,v 1.57 2002/10/24 10:04:51 czo Exp $
#
TMPFILE=cvslog.$$
FINGER=`who am i | gawk '{gsub(/^[^\!]*\!/,""); print $1}'`
(
echo "==================================================================="
echo "Modification le : `date`"
echo "Par : $USER"
echo "==================================================================="
echo ""
cat
) > "$TMPFILE"
cat "$TMPFILE" >> $CVSROOT/CVSROOT/log-commit
UPDATE_DIR=`cat "$TMPFILE" | gawk '
/^Update of .*\/cvsroot\// {
gsub(/^Update of .*\/cvsroot\//, "");
SUJ=$0
}
END {
printf("%s", SUJ)
}'`
UPDATE_IN=`cat "$TMPFILE" | gawk '
/^In directory / {
gsub(/^In directory [^:]*:/, "");
SUJ=$0
}
END {
printf("%s", SUJ)
}'`
MODIFIED_FILES=`cat "$TMPFILE" | gawk '
/^Modified Files:/ { start=1; next}
/^Log Message:/ { start=0; }
{if (start) MFILES=MFILES " " $0 ;}
END {
printf("%s", MFILES)
}'`
MAIL_SUBJECT=`echo "$UPDATE_DIR" | sed 's§alliance/§§' | sed 's§share/§§' | sed 's§sources/§§'`
(
# echo $UPDATE_DIR >> "$TMPFILE"
# echo $UPDATE_IN >> "$TMPFILE"
# echo $MAIL_SUBJECT >> "$TMPFILE"
# echo $MODIFIED_FILES >> "$TMPFILE"
# pwd
(
echo ""
echo "==================================================================="
echo ""
cd $UPDATE_IN
sleep 15
cvs diff -kk -l -D "5 min ago" $MODIFIED_FILES | head -50
) >> "$TMPFILE"
# pwd
# cat $TMPFILE
cat "$TMPFILE" | mail -s "$MAIL_SUBJECT" alliance-cvs@asim.lip6.fr
# find cvsroot -type d | xargs chmod g+s
# devrait marcher...
# chgrp -R alliance /users/outil/alliance/cvsroot
# cvs -q update -d -P & en crontab ....
rm -f "$TMPFILE" dummy
) > /dev/null 2>&1 &
exit 0

View File

@ -1,46 +0,0 @@
#!/bin/sh
#
# Filename: posttaginfo
# Copyright (C) 1999, 2000 Czo <Olivier.Sirol@lip6.fr>
# License: GPL (http://www.gnu.org/copyleft/gpl.html)
# Started: Sept 1999
# Last Change: Monday 09 September 2002, 11:09
# Edit Time: 1:45:24
# Description:
#
# $Id: posttaginfo,v 1.3 2002/09/09 09:09:22 czo Exp $
#
#
# The arguments passed to the command are, in order,
# the tagname,
# operation (add for tag, mov for tag -F, and del for tag -d),
# repository,
# and any remaining are pairs of filename revision.
# A non-zero exit of the filter program will cause the tag to be aborted.
#
TMPFILE=cvslog.$$
FINGER=`who am i | gawk '{gsub(/^[^\!]*\!/,""); print $1}'`
MAIL_SUBJECT="CVS taginfo $1"
(
(echo "==================================================================="
echo "TAG : `date`"
echo "Par : $USER"
echo "==================================================================="
echo ""
echo "$2 of $1 in $3"
shift
shift
shift
echo "$*" ) > "$TMPFILE"
cat "$TMPFILE" | mail -s "ALC : $MAIL_SUBJECT" alliance-cvs@asim.lip6.fr
rm -f "$TMPFILE" dummy
) > /dev/null 2>&1 &
exit 0

View File

@ -1,13 +0,0 @@
# The "rcsinfo" file is used to control templates with which the editor
# is invoked on commit and import.
#
# The first entry on a line is a regular expression which is tested
# against the directory that the change is being made to, relative to the
# $CVSROOT. For the first match that is found, then the remainder of the
# line is the name of the file that contains the template.
#
# If the repository name does not match any of the regular expressions in this
# file, the "DEFAULT" line is used, if it is specified.
#
# If the name "ALL" appears as a regular expression it is always used
# in addition to the first matching regex or "DEFAULT".

View File

@ -1,22 +0,0 @@
#!/bin/sh
#
# Filename: setperms
# Copyright (C) 1999, 2000 Czo <Olivier.Sirol@lip6.fr>
# License: GPL (http://www.gnu.org/copyleft/gpl.html)
# Started: April 2000
# Last Change: Tuesday 03 July 2001, 16:06
# Edit Time: 0:13:29
# Description:
#
# $Id: setperms,v 1.1 2001/07/03 14:07:44 czo Exp $
#
echo %%%%%%% Hello
echo "Launching chgrp and chmod ..."
find /users/soft5/newlabo/alliance-4.5.0 -type d | xargs chmod 2775
chgrp -R 30101 /users/soft5/newlabo/alliance-4.5.0
chmod -R ug+rw /users/soft5/newlabo/alliance-4.5.0
exit 0

View File

@ -1,21 +0,0 @@
# The "taginfo" file is used to control pre-tag checks.
# The filter on the right is invoked with the following arguments:
#
# $1 -- tagname
# $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d
# $3 -- repository
# $4-> file revision [file revision ...]
#
# A non-zero exit of the filter program will cause the tag to be aborted.
#
# The first entry on a line is a regular expression which is tested
# against the directory that the change is being committed to, relative
# to the $CVSROOT. For the first match that is found, then the remainder
# of the line is the name of the filter to run.
#
# If the repository name does not match any of the regular expressions in this
# file, the "DEFAULT" line is used, if it is specified.
#
# If the name "ALL" appears as a regular expression it is always used
# in addition to the first matching regex or "DEFAULT".
ALL /users/outil/alliance/cvsroot/CVSROOT/posttaginfo

View File

@ -1,321 +0,0 @@
#!/bin/sh
# -*- Mode: shell-script -*-
#
# Script to update Alliance XXX/etc/libraries.mk whith
# the newest libs found in XXX/lib/
# and the newest includes found in XXX/include/.
#
# Creates XXX/etc/libraries.mk.update and gives warnings to stderr
# then copy old libraries.mk to libraries.mk.`date`
# then copy new libraries.mk.update to libraries.mk
#
# Usage :
# Requires 1 arg : XXX which is the path to
# etc/libraries.mk, lib/ and include/
# Eg : update_libraries.mk.sh /users/soft5/labo_pc
#
# Author : Olivier SIROL
# Date : April 1997
# $Id: updatelibmk,v 1.5 2001/05/22 14:19:46 czo Exp $
# DO_UPDATE: 0 chk only, 1 write file, 2 print stdout
DO_UPDATE=2
if [ $# -ge 1 ] ; then
if [ $1 = "-u" ] ; then
DO_UPDATE=1
shift
fi
if [ $1 = "-c" ] ; then
DO_UPDATE=0
shift
fi
fi
if [ $# -lt 1 ] ; then
echo "Usage : `basename $0` [-c|-u] XXX"
echo "where XXX is the path to :"
echo " lib : XXX/lib/lib*.a"
echo " header : XXX/include/*.h"
echo " makefile : XXX/etc/libraries.mk"
echo "if -c is specified as first arg, only check (no files are written)"
echo "if -u is specified as first arg, write libraries.mk"
echo "whithout first arg, print to stdout"
exit 1
fi
if [ -d $1/lib ] && [ -d $1/include ] && [ -f $1/etc/libraries.mk ] ; then
ROOT_DIR=$1;
LIBMK=$1/etc/libraries.mk;
#if [ $DO_UPDATE -eq 1 ] ; then
# LIBMK_UPD=$LIBMK.update
# LIBMK_OLD=$LIBMK.`date +%Y_%m_%d`
#else
# if [ $DO_UPDATE -eq 2 ] ; then
# LIBMK_UPD=
# else
# LIBMK_UPD=> /dev/null
# fi
#fi
(cat $LIBMK) | gawk -v ROOT_DIR=$ROOT_DIR '
BEGIN {
# On cree un tableau contennant
# - le nom des librairies installees
# - le numero de version
# - un flag pour verifier par la suite quelles sont dans libraries.mk
#
FIRSTPASS=0;
OLD_PREFIX="";
OLD_NUMBER="0";
i=1;
MAFONC = "(cd "ROOT_DIR"/lib ; ls -1 lib*.a | sort)";
while (MAFONC | getline)
{
LIB_NAME=$0;
sub ( /.a$/ , "", LIB_NAME);
sub ( /^lib/ , "", LIB_NAME);
LIB_PREFIX=LIB_NAME;
LIB_NUMBER=LIB_NAME;
sub ( /[0-9]*$/ , "", LIB_PREFIX);
sub ( LIB_PREFIX , "", LIB_NUMBER);
if (OLD_PREFIX==LIB_PREFIX && FIRSTPASS)
{
if ((LIB_NUMBER+0) > (OLD_NUMBER+0))
OLD_NUMBER=LIB_NUMBER;
}
else
{
if (!FIRSTPASS)
FIRSTPASS=1;
else
{
HL[1,i]=OLD_PREFIX;
HL[2,i]=OLD_NUMBER;
HL[3,i]=0;
i++;
}
OLD_PREFIX=LIB_PREFIX;
OLD_NUMBER=LIB_NUMBER;
}
}
HL[1,i]=OLD_PREFIX;
HL[2,i]=OLD_NUMBER;
HL[3,i]=0;
MAX_HL=i;
close (MAFONC);
# On cree un autre tableau pour les headers
FIRSTPASS=0;
OLD_PREFIX="";
OLD_NUMBER="0";
i=1;
MAFONC = "(cd "ROOT_DIR"/include ; ls -1 *.h | sort)";
while (MAFONC | getline)
{
LIB_NAME=$0;
sub ( /.h$/ , "", LIB_NAME);
LIB_PREFIX=LIB_NAME;
LIB_NUMBER=LIB_NAME;
sub ( /[0-9]*$/ , "", LIB_PREFIX);
sub ( LIB_PREFIX , "", LIB_NUMBER);
if (OLD_PREFIX==LIB_PREFIX && FIRSTPASS)
{
if ((LIB_NUMBER+0) > (OLD_NUMBER+0))
OLD_NUMBER=LIB_NUMBER;
}
else
{
if (!FIRSTPASS)
FIRSTPASS=1;
else
{
HH[1,i]=OLD_PREFIX;
HH[2,i]=OLD_NUMBER;
HH[3,i]=0;
i++;
}
OLD_PREFIX=LIB_PREFIX;
OLD_NUMBER=LIB_NUMBER;
}
}
HH[1,i]=OLD_PREFIX;
HH[2,i]=OLD_NUMBER;
HH[3,i]=0;
MAX_HH=i;
close (MAFONC);
}
#
# process du libraries.mk
# on remplace les numeros inc/lib par les derniers numeros de version
# si inc/lib introuvable, on ne modifie pas la ligne
# Il doit y avoir une seul maro par ligne du type
# xxxx_L ou
# xxxx_LIB ou
# xxxx_H
#
# warnings sur stderr
#
# si commentaire, on laisse tomber sauf Last updated
/# Last updated on/ {
printf("# Last updated on %s\n", strftime("on %A %d %B %Y at %H:%M %Z"));
next;
}
/^[ \t]*#/ {
print;
next;
}
# si ALLIANCE ou TARGET print, on laisse tomber
/^[ \t]*ALLIANCE_/ {print ; next}
/^[ \t]*TARGET_/ {print ; next}
# si macro, ca nous interresse
/=/ {
MACRO = $0;
NAME = $0;
sub(/[ \t]*=.*$/, "", MACRO);
sub(/^.*=[ \t]*/, "", NAME);
LIB_NAME = NAME;
if ( MACRO ~ /_L/)
{
if (MACRO ~ /_LIB/)
{
sub ( /.a$/ , "", LIB_NAME);
sub ( /^lib/ , "", LIB_NAME);
}
else
sub ( /^-l/ , "", LIB_NAME);
LIB_PREFIX=LIB_NAME;
LIB_NUMBER=LIB_NAME;
sub ( /[0-9]*$/ , "", LIB_PREFIX);
sub ( LIB_PREFIX , "", LIB_NUMBER);
for (i=1; i<=MAX_HL; i++)
{
if (i==MAX_HL || HL[1,i]==LIB_PREFIX)
break;
}
if (HL[1,i]==LIB_PREFIX)
{
if (MACRO ~ /_LIB/)
{
if ((HL[2,i]+0) > (LIB_NUMBER+0))
printf ("## CHANGED : lib%s%s.a is older than existing, changed\n",
LIB_PREFIX, LIB_NUMBER) > "/dev/stderr";
if ((HL[2,i]+0) < (LIB_NUMBER+0))
printf ("## CHANGED : lib%s%s.a is newer than existing, changed\n",
LIB_PREFIX, LIB_NUMBER) > "/dev/stderr";
printf ("%-10s = lib%s%s.a\n", MACRO,LIB_PREFIX, HL[2,i]);
}
else
printf ("%-10s = -l%s%s\n", MACRO,LIB_PREFIX, HL[2,i]);
HL[3,i]=1;
}
else
{
printf ("%s\n", $0);
printf ("%%% Warning lib %s not found, left as is\n",
LIB_PREFIX) > "/dev/stderr";
}
}
else
if ( MACRO ~ /_H/)
{
sub ( /.h$/ , "", LIB_NAME);
LIB_PREFIX=LIB_NAME;
LIB_NUMBER=LIB_NAME;
sub ( /[0-9]*$/ , "", LIB_PREFIX);
sub ( LIB_PREFIX , "", LIB_NUMBER);
for (i=1; i<=MAX_HH; i++)
{
if (i==MAX_HH || HH[1,i]==LIB_PREFIX)
break;
}
if (HH[1,i]==LIB_PREFIX)
{
if ((HH[2,i]+0) > (LIB_NUMBER+0))
printf ("## CHANGED : %s%s.h is older than existing, changed\n",
LIB_PREFIX, LIB_NUMBER) > "/dev/stderr";
if ((HH[2,i]+0) < (LIB_NUMBER+0))
printf ("## CHANGED : %s%s.h is newer than existing, changed\n",
LIB_PREFIX, LIB_NUMBER) > "/dev/stderr";
printf ("%-10s = %s%s.h\n", MACRO,LIB_PREFIX, HH[2,i]);
HH[3,i]=1;
}
else
{
printf ("%s\n", $0);
printf ("%%% Warning header %s not found, left as is\n",
LIB_PREFIX) > "/dev/stderr";
}
}
else
{
printf ("%%% Warning : unrecognized line, left as is\n") > "/dev/stderr";
printf ("%s\n", $0);
}
next;
}
# sinon cest une ligne normale
{print;}
END {
for (i=1; i<=MAX_HL; i++)
if (HL[3,i]==0)
printf ("%%% WARNING no macro in libraries.mk for lib%s%s.a\n",
HL[1,i] , HL[2,i]) > "/dev/stderr";
for (i=1; i<=MAX_HH; i++)
if (HH[3,i]==0)
printf ("%%% WARNING no macro in libraries.mk for %s%s.h\n",
HH[1,i] , HH[2,i]) > "/dev/stderr";
}'
# $LIBMK_UPD
#if [ $DO_UPDATE -eq 1 ] ; then
# cp -f $LIBMK $LIBMK_OLD
# cp -f $LIBMK_UPD $LIBMK
# rm -f $LIBMK_UPD
# echo $LIBMK updated!
# exit 0
#fi
else
echo "`basename $0` : error, can't find file or dir"
echo "lib : $1/lib/lib*.a"
echo "header : $1/include/*.h"
echo "makefile : $1/etc/libraries.mk"
exit 1
fi

View File

@ -1,21 +0,0 @@
# The "verifymsg" file is used to allow verification of logging
# information. It works best when a template (as specified in the
# rcsinfo file) is provided for the logging procedure. Given a
# template with locations for, a bug-id number, a list of people who
# reviewed the code before it can be checked in, and an external
# process to catalog the differences that were code reviewed, the
# following test can be applied to the code:
#
# Making sure that the entered bug-id number is correct.
# Validating that the code that was reviewed is indeed the code being
# checked in (using the bug-id number or a seperate review
# number to identify this particular code set.).
#
# If any of the above test failed, then the commit would be aborted.
#
# Actions such as mailing a copy of the report to each reviewer are
# better handled by an entry in the loginfo file.
#
# One thing that should be noted is the the ALL keyword is not
# supported. There can be only one entry that matches a given
# repository.