source: TOOLS/PACK_IPSL/check_libccc_user.sh @ 1867

Last change on this file since 1867 was 1867, checked in by gpincka, 11 years ago

Makefile crash si libccc_user non charge

  • Property svn:executable set to *
File size: 422 bytes
Line 
1#!/bin/bash
2
3function check_cdo
4{
5   module list >& myModuleList.txt
6   
7   # Presence de la chaine "n) nco/" ou n est un nombre 
8   nb_of_libLines=` grep -e '[[:digit:]]*) libccc_user/' myModuleList.txt | wc -l `
9
10   if [ "x${nb_of_libLines}" == "x0" ]
11   then
12       # echo "1"
13       exit 1
14   fi
15
16   # Plus besoin du myModuleList.txt
17   rm -f myModuleList.txt > /dev/null 2>&1
18   # echo "0"
19   exit 0
20
21}
22
23
24check_cdo
Note: See TracBrowser for help on using the repository browser.