* attila/src/attila.sh :
- Ajout de l'argument "--rule=<rulename>" pour pouvoir executer n'importe quelle regle et pas seulement "install" ("uninstall" peut etre pratique... - Modif de la doc en consequence. * attila/doc/builddoc.sh : - Un petit bug sur la preservation des repertoires CVS de la doc html et du man.
This commit is contained in:
parent
e3ccbfdf67
commit
5f124293be
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
SUBDIRS = attila man1
|
SUBDIRS = attila
|
||||||
|
|
||||||
pdfdir = $(prefix)/doc/pdf
|
pdfdir = $(prefix)/doc/pdf
|
||||||
pdf_DATA = attila.pdf
|
pdf_DATA = attila.pdf
|
||||||
|
|
||||||
EXTRA_DIST = $(pdf_DATA) \
|
EXTRA_DIST = $(pdf_DATA) \
|
||||||
./man_attila.sgm \
|
./attila.sgm \
|
||||||
./attila.sgm
|
./man_attila.sgm
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -102,12 +102,17 @@ CLASS="REPLACEABLE"
|
||||||
><I
|
><I
|
||||||
>name2</I
|
>name2</I
|
||||||
></TT
|
></TT
|
||||||
>...]</P
|
>...]<BR> {--rule=<TT
|
||||||
|
CLASS="REPLACEABLE"
|
||||||
|
><I
|
||||||
|
>rulename</I
|
||||||
|
></TT
|
||||||
|
>}</P
|
||||||
></DIV
|
></DIV
|
||||||
><DIV
|
><DIV
|
||||||
CLASS="REFSECT1"
|
CLASS="REFSECT1"
|
||||||
><A
|
><A
|
||||||
NAME="AEN50"
|
NAME="AEN53"
|
||||||
></A
|
></A
|
||||||
><H2
|
><H2
|
||||||
> Description </H2
|
> Description </H2
|
||||||
|
@ -197,6 +202,18 @@ CLASS="LITERAL"
|
||||||
><P
|
><P
|
||||||
> Run <TT
|
> Run <TT
|
||||||
CLASS="LITERAL"
|
CLASS="LITERAL"
|
||||||
|
>autostuff</TT
|
||||||
|
> for the tool in the
|
||||||
|
<TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>~/alliance/src</TT
|
||||||
|
> directory.
|
||||||
|
</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
> Run <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
>configure</TT
|
>configure</TT
|
||||||
> in the build
|
> in the build
|
||||||
directory (see below).
|
directory (see below).
|
||||||
|
@ -263,7 +280,7 @@ VALIGN="TOP"
|
||||||
><DIV
|
><DIV
|
||||||
CLASS="REFSECT2"
|
CLASS="REFSECT2"
|
||||||
><A
|
><A
|
||||||
NAME="AEN84"
|
NAME="AEN91"
|
||||||
></A
|
></A
|
||||||
><H3
|
><H3
|
||||||
> Directory Structure </H3
|
> Directory Structure </H3
|
||||||
|
@ -345,7 +362,7 @@ CLASS="LITERAL"
|
||||||
><DIV
|
><DIV
|
||||||
CLASS="REFSECT2"
|
CLASS="REFSECT2"
|
||||||
><A
|
><A
|
||||||
NAME="AEN108"
|
NAME="AEN115"
|
||||||
></A
|
></A
|
||||||
><H3
|
><H3
|
||||||
> CVS checkout </H3
|
> CVS checkout </H3
|
||||||
|
@ -409,7 +426,7 @@ CLASS="LITERAL"
|
||||||
><DIV
|
><DIV
|
||||||
CLASS="REFSECT2"
|
CLASS="REFSECT2"
|
||||||
><A
|
><A
|
||||||
NAME="AEN129"
|
NAME="AEN136"
|
||||||
></A
|
></A
|
||||||
><H3
|
><H3
|
||||||
> Guessing <TT
|
> Guessing <TT
|
||||||
|
@ -456,7 +473,7 @@ CLASS="LITERAL"
|
||||||
><DIV
|
><DIV
|
||||||
CLASS="REFSECT1"
|
CLASS="REFSECT1"
|
||||||
><A
|
><A
|
||||||
NAME="AEN142"
|
NAME="AEN149"
|
||||||
></A
|
></A
|
||||||
><H2
|
><H2
|
||||||
> Guessing <TT
|
> Guessing <TT
|
||||||
|
@ -557,7 +574,7 @@ CLASS="LITERAL"
|
||||||
><DIV
|
><DIV
|
||||||
CLASS="REFSECT1"
|
CLASS="REFSECT1"
|
||||||
><A
|
><A
|
||||||
NAME="AEN163"
|
NAME="AEN170"
|
||||||
></A
|
></A
|
||||||
><H2
|
><H2
|
||||||
> Arguments </H2
|
> Arguments </H2
|
||||||
|
@ -714,6 +731,36 @@ CLASS="FILENAME"
|
||||||
name of the tool to be installed.
|
name of the tool to be installed.
|
||||||
</P
|
</P
|
||||||
></LI
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
> <TT
|
||||||
|
CLASS="USERINPUT"
|
||||||
|
><B
|
||||||
|
>--rule=<TT
|
||||||
|
CLASS="FILENAME"
|
||||||
|
>rulename</TT
|
||||||
|
></B
|
||||||
|
></TT
|
||||||
|
> :
|
||||||
|
name of the rule to be passed to the <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>make</TT
|
||||||
|
> command.
|
||||||
|
By default : <TT
|
||||||
|
CLASS="USERINPUT"
|
||||||
|
><B
|
||||||
|
>install</B
|
||||||
|
></TT
|
||||||
|
>. In the unlikely
|
||||||
|
case you wants to remove a tool, you can pass
|
||||||
|
<TT
|
||||||
|
CLASS="USERINPUT"
|
||||||
|
><B
|
||||||
|
>uninstall</B
|
||||||
|
></TT
|
||||||
|
>.
|
||||||
|
</P
|
||||||
|
></LI
|
||||||
></UL
|
></UL
|
||||||
>
|
>
|
||||||
</P
|
</P
|
||||||
|
@ -721,7 +768,7 @@ CLASS="FILENAME"
|
||||||
><DIV
|
><DIV
|
||||||
CLASS="REFSECT1"
|
CLASS="REFSECT1"
|
||||||
><A
|
><A
|
||||||
NAME="AEN205"
|
NAME="AEN219"
|
||||||
></A
|
></A
|
||||||
><H2
|
><H2
|
||||||
> Configuration file <TT
|
> Configuration file <TT
|
||||||
|
@ -884,7 +931,7 @@ CLASS="LITERAL"
|
||||||
><DIV
|
><DIV
|
||||||
CLASS="REFSECT1"
|
CLASS="REFSECT1"
|
||||||
><A
|
><A
|
||||||
NAME="AEN250"
|
NAME="AEN264"
|
||||||
></A
|
></A
|
||||||
><H2
|
><H2
|
||||||
> Examples </H2
|
> Examples </H2
|
||||||
|
@ -994,6 +1041,38 @@ CLASS="USERINPUT"
|
||||||
></TD
|
></TD
|
||||||
></TR
|
></TR
|
||||||
></TABLE
|
></TABLE
|
||||||
|
>
|
||||||
|
</P
|
||||||
|
><P
|
||||||
|
> Remove <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>poire</TT
|
||||||
|
> tool from the system-wide tree.
|
||||||
|
(<TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>poire</TT
|
||||||
|
> is the old name of <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>nero</TT
|
||||||
|
>).
|
||||||
|
<TABLE
|
||||||
|
BORDER="0"
|
||||||
|
BGCOLOR="#E0E0E0"
|
||||||
|
WIDTH="100%"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
><PRE
|
||||||
|
CLASS="SCREEN"
|
||||||
|
>$ <TT
|
||||||
|
CLASS="USERINPUT"
|
||||||
|
><B
|
||||||
|
>attila --asim --tool=poire --rule=uninstall</B
|
||||||
|
></TT
|
||||||
|
>
|
||||||
|
</PRE
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
>
|
>
|
||||||
</P
|
</P
|
||||||
></DIV
|
></DIV
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
echo "EXTRA_DIST = \$(pkghtml_DATA)" >> $DOC_AM
|
echo "EXTRA_DIST = \$(pkghtml_DATA)" >> $DOC_AM
|
||||||
mv $DOC_AM $TOOL/Makefile.am
|
mv $DOC_AM $TOOL/Makefile.am
|
||||||
|
|
||||||
if [ -f ./CVS-$TOOL ]; then
|
if [ -d ./CVS-$TOOL ]; then
|
||||||
mv ./CVS-$TOOL $TOOL/CVS
|
mv ./CVS-$TOOL $TOOL/CVS
|
||||||
mv ./CVS-SS-$TOOL $TOOL/stylesheet-images/CVS
|
mv ./CVS-SS-$TOOL $TOOL/stylesheet-images/CVS
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,13 +1,18 @@
|
||||||
.\\" auto-generated by docbook2man-spec $Revision: 1.1 $
|
.\\" auto-generated by docbook2man-spec $Revision: 1.2 $
|
||||||
.TH "ATTILA" "1" "29 September 2002" "ASIM/LIP6" "Alliance - attila User's Manual"
|
.TH "ATTILA" "1" "01 October 2002" "ASIM/LIP6" "Alliance - attila User's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
attila \- A Tool Installer
|
attila \- A Tool Installer
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.sp
|
.sp
|
||||||
\fBattila\fR [ \fB-h\fR ] [ \fB-S\fR ] [ \fB-U\fR ] [ \fB-F\fR ] [ \fB-A\fR ]
|
\fBattila\fR [ \fB-h\fR ] [ \fB-S\fR ] [ \fB-U\fR ] [ \fB-F\fR ] [ \fB-A\fR ]
|
||||||
|
|
||||||
[ \fB--help\fR ] [ \fB--ssh\fR ] [ \fB--user\fR ] [ \fB--asim\fR ]
|
[ \fB--help\fR ] [ \fB--ssh\fR ] [ \fB--user\fR ] [ \fB--asim\fR ]
|
||||||
|
|
||||||
[ \fB--prefix=\fIINSTALL_DIR\fB\fR ] [ \fB--builddir=\fIBUILD_DIR\fB\fR ]
|
[ \fB--prefix=\fIINSTALL_DIR\fB\fR ] [ \fB--builddir=\fIBUILD_DIR\fB\fR ]
|
||||||
|
|
||||||
\fB--tool=\fIname1\fB\fR [ \fB--tool=\fIname2\fB\fR\fI...\fR ]
|
\fB--tool=\fIname1\fB\fR [ \fB--tool=\fIname2\fB\fR\fI...\fR ]
|
||||||
|
|
||||||
|
\fB--rule=\fIrulename\fB\fR
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
.PP
|
.PP
|
||||||
attila automates the process of compiling
|
attila automates the process of compiling
|
||||||
|
@ -35,9 +40,12 @@ your ~/.rhosts to access them whithout
|
||||||
passwords. You also can uses ssh (but the
|
passwords. You also can uses ssh (but the
|
||||||
procedure to allow automatic login is more complicated).
|
procedure to allow automatic login is more complicated).
|
||||||
.IP 3.
|
.IP 3.
|
||||||
|
Run autostuff for the tool in the
|
||||||
|
~/alliance/src directory.
|
||||||
|
.IP 4.
|
||||||
Run configure in the build
|
Run configure in the build
|
||||||
directory (see below).
|
directory (see below).
|
||||||
.IP 4.
|
.IP 5.
|
||||||
Install the tool in the local install directory (see below)
|
Install the tool in the local install directory (see below)
|
||||||
or in the system-wide \fBAlliance\fR directory
|
or in the system-wide \fBAlliance\fR directory
|
||||||
rooted under /asim/alliance.
|
rooted under /asim/alliance.
|
||||||
|
@ -175,6 +183,13 @@ override the default building directory.
|
||||||
\(bu
|
\(bu
|
||||||
\fB--tool=\fIname1\fB\fR\ :
|
\fB--tool=\fIname1\fB\fR\ :
|
||||||
name of the tool to be installed.
|
name of the tool to be installed.
|
||||||
|
.TP 0.2i
|
||||||
|
\(bu
|
||||||
|
\fB--rule=\fIrulename\fB\fR\ :
|
||||||
|
name of the rule to be passed to the make command.
|
||||||
|
By default\ : \fBinstall\fR. In the unlikely
|
||||||
|
case you wants to remove a tool, you can pass
|
||||||
|
\fBuninstall\fR.
|
||||||
.PP
|
.PP
|
||||||
.SH "CONFIGURATION FILE ATTILA.CONF"
|
.SH "CONFIGURATION FILE ATTILA.CONF"
|
||||||
.PP
|
.PP
|
||||||
|
@ -258,3 +273,12 @@ $ \fBattila --tool=mbk --tool=genlib\fR
|
||||||
|
|
||||||
.sp
|
.sp
|
||||||
.fi
|
.fi
|
||||||
|
.PP
|
||||||
|
Remove poire tool from the system-wide tree.
|
||||||
|
(poire is the old name of nero).
|
||||||
|
.sp
|
||||||
|
.nf
|
||||||
|
$ \fBattila --asim --tool=poire --rule=uninstall\fR
|
||||||
|
|
||||||
|
.sp
|
||||||
|
.fi
|
||||||
|
|
|
@ -34,6 +34,8 @@
|
||||||
<sbr>
|
<sbr>
|
||||||
<arg choice="req">--tool=<replaceable>name1</replaceable></arg>
|
<arg choice="req">--tool=<replaceable>name1</replaceable></arg>
|
||||||
<arg rep="repeat">--tool=<replaceable>name2</replaceable></arg>
|
<arg rep="repeat">--tool=<replaceable>name2</replaceable></arg>
|
||||||
|
<sbr>
|
||||||
|
<arg choice="req">--rule=<replaceable>rulename</replaceable></arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
@ -69,6 +71,11 @@
|
||||||
procedure to allow automatic login is more complicated).
|
procedure to allow automatic login is more complicated).
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para> Run <literal>autostuff</literal> for the tool in the
|
||||||
|
<literal>~/alliance/src</literal> directory.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para> Run <literal>configure</literal> in the build
|
<para> Run <literal>configure</literal> in the build
|
||||||
directory (see below).
|
directory (see below).
|
||||||
|
@ -261,6 +268,14 @@
|
||||||
name of the tool to be installed.
|
name of the tool to be installed.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para> <userinput>--rule=<filename>rulename</filename></userinput> :
|
||||||
|
name of the rule to be passed to the <literal>make</literal> command.
|
||||||
|
By default : <userinput>install</userinput>. In the unlikely
|
||||||
|
case you wants to remove a tool, you can pass
|
||||||
|
<userinput>uninstall</userinput>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
@ -357,6 +372,13 @@ $ <userinput>attila --asim --tool=nero</userinput>
|
||||||
$ <userinput>attila --tool=mbk --tool=genlib</userinput>
|
$ <userinput>attila --tool=mbk --tool=genlib</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
Remove <literal>poire</literal> tool from the system-wide tree.
|
||||||
|
(<literal>poire</literal> is the old name of <literal>nero</literal>).
|
||||||
|
<screen>
|
||||||
|
$ <userinput>attila --asim --tool=poire --rule=uninstall</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# $Id: attila.sh,v 1.3 2002/09/30 18:30:11 jpc Exp $
|
# $Id: attila.sh,v 1.4 2002/10/01 14:02:11 jpc Exp $
|
||||||
#
|
#
|
||||||
# /------------------------------------------------------------------\
|
# /------------------------------------------------------------------\
|
||||||
# | |
|
# | |
|
||||||
|
@ -63,6 +63,8 @@
|
||||||
echo " \"\$HOME/alliance/\$OS/build\"."
|
echo " \"\$HOME/alliance/\$OS/build\"."
|
||||||
echo " o [--tool=<name1>] : The name of the tool to be processed, at"
|
echo " o [--tool=<name1>] : The name of the tool to be processed, at"
|
||||||
echo " least one must be present."
|
echo " least one must be present."
|
||||||
|
echo " o [--rule=<rule>] : The name of the rule to be executed by the"
|
||||||
|
echo " Makefile (default : \"install\")."
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
|
@ -298,6 +300,7 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
cd $HOME
|
||||||
# Check out minimal set of files if needed.
|
# Check out minimal set of files if needed.
|
||||||
for file in $CVS_STARTUP_FILES; do
|
for file in $CVS_STARTUP_FILES; do
|
||||||
if [ ! -f $HOME/alliance/src/$file ]; then
|
if [ ! -f $HOME/alliance/src/$file ]; then
|
||||||
|
@ -306,6 +309,7 @@
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Checks for tools sources.
|
# Checks for tools sources.
|
||||||
echo " o Checking tools sources."
|
echo " o Checking tools sources."
|
||||||
for TOOL in $TOOLS; do
|
for TOOL in $TOOLS; do
|
||||||
|
@ -397,7 +401,7 @@
|
||||||
|
|
||||||
|
|
||||||
cd $HOME/alliance/src
|
cd $HOME/alliance/src
|
||||||
if [ ! -f $TOOL/Makefile.in ]; then
|
if [ ! -f Makefile.in ]; then
|
||||||
./autostuff
|
./autostuff
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -434,8 +438,9 @@
|
||||||
fi
|
fi
|
||||||
cd $TOOL
|
cd $TOOL
|
||||||
|
|
||||||
|
echo " - Making rule $RULE for $TOOL."
|
||||||
$SRC_DIR/$TOOL/configure --prefix=$INSTALL_DIR
|
$SRC_DIR/$TOOL/configure --prefix=$INSTALL_DIR
|
||||||
$MAKE prefix=$INSTALL_DIR install
|
$MAKE prefix=$INSTALL_DIR $RULE
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
if [ "$ASIM" = "y" ]; then
|
if [ "$ASIM" = "y" ]; then
|
||||||
|
@ -491,6 +496,7 @@
|
||||||
|
|
||||||
|
|
||||||
TOOLS=""
|
TOOLS=""
|
||||||
|
RULE="install"
|
||||||
|
|
||||||
ASIM="n"
|
ASIM="n"
|
||||||
FULL="n"
|
FULL="n"
|
||||||
|
@ -547,6 +553,12 @@
|
||||||
print_usage
|
print_usage
|
||||||
exit 1
|
exit 1
|
||||||
fi;;
|
fi;;
|
||||||
|
--rule=*) RULE=`get_string $1`
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -n "attila: Bad rule name argument \"$1\"."
|
||||||
|
print_usage
|
||||||
|
exit 1
|
||||||
|
fi;;
|
||||||
|
|
||||||
# Short arguments.
|
# Short arguments.
|
||||||
-*) SHORTS="$1"; NB=2; CH=`echo $SHORTS | cut -c$NB`
|
-*) SHORTS="$1"; NB=2; CH=`echo $SHORTS | cut -c$NB`
|
||||||
|
@ -608,6 +620,7 @@ if [ "$FULL" = "y" ]; then
|
||||||
else
|
else
|
||||||
ARGS="$ARGS --user"
|
ARGS="$ARGS --user"
|
||||||
fi
|
fi
|
||||||
|
ARGS="$ARGS --rule=$RULE"
|
||||||
|
|
||||||
for TOOL in $TOOLS; do
|
for TOOL in $TOOLS; do
|
||||||
ARGS="$ARGS --tool=$TOOL"
|
ARGS="$ARGS --tool=$TOOL"
|
||||||
|
|
Loading…
Reference in New Issue