Salome HOME
Fix misprint
[tools/install.git] / config_files / backupEnv.sh
1 #!/bin/bash -noprofile
2
3 ####################################################################################
4 #  File      : backupEnv.sh
5 #  Created   : Thu Dec 18 12:01:00 2002
6 #  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
7 #  Project   : SALOME
8 #  Module    : Installation Wizard
9 #  Copyright : 2002-2013 CEA
10 #
11 #  This script is the part of the SALOME installation procedure.
12 #
13 #  The script checks available disk space. Returns 1 if there is no available 
14 #  space on the disc.
15 #
16 #  Usage: backupEnv <directory>
17 #
18 ####################################################################################
19
20 install_root=$1
21 env_sequence="env_build.csh env_build.sh env_products.csh env_products.sh"
22
23 for file_name in ${env_sequence} ; do
24     file=${install_root}/${file_name}
25     if [ -e ${file} ] ; then
26         cp ${file} ${file}_`date +%F_%T`
27     fi
28 done
29 exit 0