source: TOOLS/PACK_IPSL/check_libccc_user.sh @ 4092

Last change on this file since 4092 was 1911, checked in by aclsce, 12 years ago
  • Modified to not create tmp files in current directory
  • Property svn:executable set to *
File size: 499 bytes
RevLine 
[1867]1#!/bin/bash
2
3function check_cdo
4{
[1911]5   . load_ipslPack_env.sh
6   module list >& ${TMP_MIGR_DATA}/myModuleList.txt
[1867]7   
8   # Presence de la chaine "n) nco/" ou n est un nombre 
[1911]9   nb_of_libLines=` grep -e '[[:digit:]]*) libccc_user/' ${TMP_MIGR_DATA}/myModuleList.txt | wc -l `
[1867]10
11   if [ "x${nb_of_libLines}" == "x0" ]
12   then
13       # echo "1"
14       exit 1
15   fi
16
17   # Plus besoin du myModuleList.txt
[1911]18   rm -f ${TMP_MIGR_DATA}/myModuleList.txt > /dev/null 2>&1
[1867]19   # echo "0"
20   exit 0
21
22}
23
24
25check_cdo
Note: See TracBrowser for help on using the repository browser.