Added script to generate tar file of AMG distribution
This commit is contained in:
parent
3d2c4c52e8
commit
669d43f8e0
@ -70,7 +70,7 @@ if [ "$AMG_INSTALL_FLAG" ]
|
||||
then
|
||||
for i in $AMG_LIB_DIR $AMG_INCLUDE_DIR
|
||||
do
|
||||
if [ ! -d $i ]
|
||||
if [ ! -d "$i" ]
|
||||
then
|
||||
$AMG_MKDIR $i
|
||||
fi
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
# Defaults for building the AMG library
|
||||
#=============================================================================
|
||||
|
||||
if [ -z $AMG_DIR ]
|
||||
if [ -z "$AMG_DIR" ]
|
||||
then
|
||||
AMG_DIR="$AMG_SRC"
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ fi
|
||||
|
||||
if [ "$AMG_INSTALL_FLAG" ]
|
||||
then
|
||||
if [ ! -d $AMG_BIN_DIR ]
|
||||
if [ ! -d "$AMG_BIN_DIR" ]
|
||||
then
|
||||
$AMG_MKDIR $i
|
||||
fi
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
# Defaults for building the AMG driver
|
||||
#=============================================================================
|
||||
|
||||
if [ -z $AMG_DIR ]
|
||||
if [ -z "$AMG_DIR" ]
|
||||
then
|
||||
AMG_DIR="$AMG_SRC"
|
||||
fi
|
||||
|
||||
@ -70,17 +70,6 @@ then
|
||||
esac
|
||||
done
|
||||
|
||||
# export \
|
||||
# AMG_BUILD_ARGS \
|
||||
# AMG_ARGS \
|
||||
# AMG_ALL_FLAG \
|
||||
# AMG_INSTALL_FLAG \
|
||||
# AMG_CLEAN_FLAG \
|
||||
# AMG_VERYCLEAN_FLAG \
|
||||
# AMG_ARCH \
|
||||
# AMG_DEBUG_FLAG \
|
||||
# AMG_OPTIMIZE_FLAG
|
||||
|
||||
fi
|
||||
|
||||
#=============================================================================
|
||||
@ -96,12 +85,12 @@ fi
|
||||
# Set configurations
|
||||
#=============================================================================
|
||||
|
||||
if [ -f config.$AMG_ARCH ]
|
||||
if [ -f "config.$AMG_ARCH" ]
|
||||
then
|
||||
. config.defaults
|
||||
fi
|
||||
|
||||
if [ -f config.$AMG_ARCH ]
|
||||
if [ -f "config.$AMG_ARCH" ]
|
||||
then
|
||||
. config.$AMG_ARCH
|
||||
fi
|
||||
|
||||
@ -19,7 +19,7 @@ AMG_ARCH=""
|
||||
# Determine the OS
|
||||
#=============================================================================
|
||||
|
||||
if [ -f /bin/uname ]
|
||||
if [ -f "/bin/uname" ]
|
||||
then
|
||||
AMG_OS="`/bin/uname -s`"
|
||||
AMG_OS_Release="`/bin/uname -r`"
|
||||
|
||||
@ -42,7 +42,7 @@ fi
|
||||
|
||||
if [ "$AMG_INSTALL_FLAG" ]
|
||||
then
|
||||
if [ -z $AMG_DIR ]
|
||||
if [ -z "$AMG_DIR" ]
|
||||
then
|
||||
AMG_DIR="$AMG_SRC"
|
||||
fi
|
||||
|
||||
@ -2,3 +2,4 @@ build
|
||||
checkout
|
||||
cvode.build
|
||||
cvode.tar.Z
|
||||
tar_amg
|
||||
|
||||
28
seq_linear_solvers/amg/tar_amg
Executable file
28
seq_linear_solvers/amg/tar_amg
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
#BHEADER***********************************************************************
|
||||
# (c) 1996 The Regents of the University of California
|
||||
#
|
||||
# See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
|
||||
# notice, contact person, and disclaimer.
|
||||
#
|
||||
# $Revision$
|
||||
#EHEADER***********************************************************************
|
||||
|
||||
#===========================================================================
|
||||
# This script creates a tar file of the AMG library distribution
|
||||
#===========================================================================
|
||||
|
||||
TOP_DIR="$AMG_SRC/tmp"
|
||||
|
||||
mkdir -p $TOP_DIR/amg
|
||||
mkdir -p $TOP_DIR/amg/src
|
||||
mkdir -p $TOP_DIR/amg/config
|
||||
mkdir -p $TOP_DIR/amg/examples
|
||||
|
||||
(cd $AMG_SRC/amg; cp `cat rcs_files` $TOP_DIR/amg/src)
|
||||
(cd $AMG_SRC/config; cp `cat rcs_files` $TOP_DIR/amg/config)
|
||||
(cd $AMG_SRC/amg_fdrive; cp `cat rcs_files` $TOP_DIR/amg/examples)
|
||||
|
||||
(cd $TOP_DIR; gtar czf $AMG_SRC/amg.tgz amg)
|
||||
|
||||
rm -fr $TOP_DIR
|
||||
@ -68,7 +68,7 @@ fi
|
||||
|
||||
if [ "$AMG_INSTALL_FLAG" ]
|
||||
then
|
||||
if [ ! -d $AMG_BIN_DIR ]
|
||||
if [ ! -d "$AMG_BIN_DIR" ]
|
||||
then
|
||||
$AMG_MKDIR $i
|
||||
fi
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
# Defaults for building the AMG tools
|
||||
#=============================================================================
|
||||
|
||||
if [ -z $AMG_DIR ]
|
||||
if [ -z "$AMG_DIR" ]
|
||||
then
|
||||
AMG_DIR="$AMG_SRC"
|
||||
fi
|
||||
|
||||
@ -70,7 +70,7 @@ if [ "$AMG_INSTALL_FLAG" ]
|
||||
then
|
||||
for i in $AMG_LIB_DIR $AMG_INCLUDE_DIR
|
||||
do
|
||||
if [ ! -d $i ]
|
||||
if [ ! -d "$i" ]
|
||||
then
|
||||
$AMG_MKDIR $i
|
||||
fi
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
# Defaults for building the AMG library
|
||||
#=============================================================================
|
||||
|
||||
if [ -z $AMG_DIR ]
|
||||
if [ -z "$AMG_DIR" ]
|
||||
then
|
||||
AMG_DIR="$AMG_SRC"
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ fi
|
||||
|
||||
if [ "$AMG_INSTALL_FLAG" ]
|
||||
then
|
||||
if [ ! -d $AMG_BIN_DIR ]
|
||||
if [ ! -d "$AMG_BIN_DIR" ]
|
||||
then
|
||||
$AMG_MKDIR $i
|
||||
fi
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
# Defaults for building the AMG driver
|
||||
#=============================================================================
|
||||
|
||||
if [ -z $AMG_DIR ]
|
||||
if [ -z "$AMG_DIR" ]
|
||||
then
|
||||
AMG_DIR="$AMG_SRC"
|
||||
fi
|
||||
|
||||
@ -70,17 +70,6 @@ then
|
||||
esac
|
||||
done
|
||||
|
||||
# export \
|
||||
# AMG_BUILD_ARGS \
|
||||
# AMG_ARGS \
|
||||
# AMG_ALL_FLAG \
|
||||
# AMG_INSTALL_FLAG \
|
||||
# AMG_CLEAN_FLAG \
|
||||
# AMG_VERYCLEAN_FLAG \
|
||||
# AMG_ARCH \
|
||||
# AMG_DEBUG_FLAG \
|
||||
# AMG_OPTIMIZE_FLAG
|
||||
|
||||
fi
|
||||
|
||||
#=============================================================================
|
||||
@ -96,12 +85,12 @@ fi
|
||||
# Set configurations
|
||||
#=============================================================================
|
||||
|
||||
if [ -f config.$AMG_ARCH ]
|
||||
if [ -f "config.$AMG_ARCH" ]
|
||||
then
|
||||
. config.defaults
|
||||
fi
|
||||
|
||||
if [ -f config.$AMG_ARCH ]
|
||||
if [ -f "config.$AMG_ARCH" ]
|
||||
then
|
||||
. config.$AMG_ARCH
|
||||
fi
|
||||
|
||||
@ -19,7 +19,7 @@ AMG_ARCH=""
|
||||
# Determine the OS
|
||||
#=============================================================================
|
||||
|
||||
if [ -f /bin/uname ]
|
||||
if [ -f "/bin/uname" ]
|
||||
then
|
||||
AMG_OS="`/bin/uname -s`"
|
||||
AMG_OS_Release="`/bin/uname -r`"
|
||||
|
||||
@ -42,7 +42,7 @@ fi
|
||||
|
||||
if [ "$AMG_INSTALL_FLAG" ]
|
||||
then
|
||||
if [ -z $AMG_DIR ]
|
||||
if [ -z "$AMG_DIR" ]
|
||||
then
|
||||
AMG_DIR="$AMG_SRC"
|
||||
fi
|
||||
|
||||
@ -2,3 +2,4 @@ build
|
||||
checkout
|
||||
cvode.build
|
||||
cvode.tar.Z
|
||||
tar_amg
|
||||
|
||||
28
seq_ls/amg/tar_amg
Normal file
28
seq_ls/amg/tar_amg
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
#BHEADER***********************************************************************
|
||||
# (c) 1996 The Regents of the University of California
|
||||
#
|
||||
# See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
|
||||
# notice, contact person, and disclaimer.
|
||||
#
|
||||
# $Revision$
|
||||
#EHEADER***********************************************************************
|
||||
|
||||
#===========================================================================
|
||||
# This script creates a tar file of the AMG library distribution
|
||||
#===========================================================================
|
||||
|
||||
TOP_DIR="$AMG_SRC/tmp"
|
||||
|
||||
mkdir -p $TOP_DIR/amg
|
||||
mkdir -p $TOP_DIR/amg/src
|
||||
mkdir -p $TOP_DIR/amg/config
|
||||
mkdir -p $TOP_DIR/amg/examples
|
||||
|
||||
(cd $AMG_SRC/amg; cp `cat rcs_files` $TOP_DIR/amg/src)
|
||||
(cd $AMG_SRC/config; cp `cat rcs_files` $TOP_DIR/amg/config)
|
||||
(cd $AMG_SRC/amg_fdrive; cp `cat rcs_files` $TOP_DIR/amg/examples)
|
||||
|
||||
(cd $TOP_DIR; gtar czf $AMG_SRC/amg.tgz amg)
|
||||
|
||||
rm -fr $TOP_DIR
|
||||
@ -68,7 +68,7 @@ fi
|
||||
|
||||
if [ "$AMG_INSTALL_FLAG" ]
|
||||
then
|
||||
if [ ! -d $AMG_BIN_DIR ]
|
||||
if [ ! -d "$AMG_BIN_DIR" ]
|
||||
then
|
||||
$AMG_MKDIR $i
|
||||
fi
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
# Defaults for building the AMG tools
|
||||
#=============================================================================
|
||||
|
||||
if [ -z $AMG_DIR ]
|
||||
if [ -z "$AMG_DIR" ]
|
||||
then
|
||||
AMG_DIR="$AMG_SRC"
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user