Changeset 358 for trunk/libIGCM/libIGCM_sys
- Timestamp:
- 09/30/10 17:09:28 (14 years ago)
- Location:
- trunk/libIGCM/libIGCM_sys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys.ksh
r316 r358 16 16 # bypass specific internationalization (for awk) 17 17 export LC_ALL="C" 18 19 # Set default umask (umask is 0027 on some machines : CCRT machine at least) 20 umask 0022 18 21 19 22 # By default, all libIGCM_sys save functions will protect output datas (RUN execution mode) -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh
r356 r358 974 974 fi 975 975 fi 976 # 977 # USUAL WAY 978 cp $1 $2 > out_rsync 2>&1 979 RET=$? 976 977 exist=false 978 if [ -f $2 ] ; then 979 IGCM_debug_Print 1 "$2 already exist" 980 dmget $2 981 exist=true 982 if [ ! X$( diff $1 $2 ) = X ] ; then 983 IGCM_debug_Print 2 "$1 and $2 are the same file, we skip the copy" 984 skip=true 985 else 986 IGCM_debug_Print 2 "$1 and $2 are not the same file, we force the copy" 987 skip=false 988 fi 989 fi 990 # 991 if ( [ X${exist} = Xtrue] && [ X${skip} = Xfalse ] ) ; then 992 IGCM_sys_Chmod u+w $2 993 fi 994 # USUAL WAY 995 if ( [ X${skip} = Xfalse ] ) ; then 996 cp $1 $2 > out_rsync 2>&1 997 RET=$? 998 if [ ${RET} -gt 0 ] ; then 999 echo "IGCM_sys_Put_Out : error." 1000 cat out_rsync 1001 IGCM_debug_Exit "IGCM_sys_Put_Out" 1002 else 1003 rm out_rsync 1004 fi 1005 fi 980 1006 981 1007 # #RSYNC WITH NETWORK RSH CALL … … 993 1019 # (( RET=RET+$? )) 994 1020 995 if [ ${RET} -gt 0 ] ; then 996 echo "IGCM_sys_Put_Out : error." 997 cat out_rsync 998 IGCM_debug_Exit "IGCM_sys_Put_Out" 999 else 1000 rm out_rsync 1001 fi 1021 1002 1022 else 1003 1023 ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercure.ksh
r356 r358 817 817 fi 818 818 fi 819 # 820 # USUAL WAY 821 \cp $1 $2 > out_rsync 2>&1 822 RET=$? 819 820 exist=false 821 if [ -f $2 ] ; then 822 IGCM_debug_Print 1 "$2 already exist" 823 dmget $2 824 exist=true 825 if [ ! X$( diff $1 $2 ) = X ] ; then 826 IGCM_debug_Print 2 "$1 and $2 are the same file, we skip the copy" 827 skip=true 828 else 829 IGCM_debug_Print 2 "$1 and $2 are not the same file, we force the copy" 830 skip=false 831 fi 832 fi 833 # 834 if ( [ X${exist} = Xtrue] && [ X${skip} = Xfalse ] ) ; then 835 IGCM_sys_Chmod u+w $2 836 fi 837 # USUAL WAY 838 if ( [ X${skip} = Xfalse ] ) ; then 839 \cp $1 $2 > out_rsync 2>&1 840 RET=$? 841 if [ ${RET} -gt 0 ] ; then 842 echo "IGCM_sys_Put_Out : error." 843 cat out_rsync 844 IGCM_debug_Exit "IGCM_sys_Put_Out" 845 else 846 rm out_rsync 847 fi 848 fi 823 849 824 850 # #RSYNC WITH NETWORK RSH CALL … … 836 862 # (( RET=RET+$? )) 837 863 838 if [ ${RET} -gt 0 ] ; then839 echo "IGCM_sys_Put_Out : error."840 cat out_rsync841 IGCM_debug_Exit "IGCM_sys_Put_Out"842 else843 rm out_rsync844 fi845 864 else 846 865 ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
Note: See TracChangeset
for help on using the changeset viewer.