source: trunk/src/write_new_Rlibs.sh @ 618

Last change on this file since 618 was 618, checked in by htune, 17 hours ago

A small script to write Rlibs version in Rlibs_.txt from a renv directory together with an updated Rlibs_3.6.1.txt for belenos under test

File size: 587 bytes
Line 
1# Small lines to write a Rlibs_$RVersion.txt from a renv_$RVersion directory to fix the version of all R libraries
2# take the Rversion in arg
3# MCD 9 avril 2026
4Rversion=$1
5 
6HERE=`pwd`
7echo Rversion = $Rversion
8Rdir=../../install_shared/renv_${Rversion}/
9name_out=${HERE}/Rlibs_${Rversion}.txt
10
11if [ -f $name_out ] ; then echo "le fichier $name_out existe déjà" ; exit 1; fi
12 
13cd $Rdir
14
15for dir in `ls -d */` ; do lib=`echo $dir | sed -e "s#/##"` ; res=`cat $lib/DESCRIPTION | grep -i "version: "` ; numv=`echo $res | sed -e "s/Version: //"` ; echo ${lib}=${numv} >> $name_out ; done
Note: See TracBrowser for help on using the repository browser.