3 ## DOC: cran2deb repopulate
4 ## DOC: repopulate the cran2deb database and configurations from a new cran2deb release
10 if [ ! -d "$dir" ]; then
11 echo "Dir $dir not existing."
16 echo "Setting 'root' var to '$1'."
19 for x in $(find /etc/cran2deb/ -type f -name '*.in'); do
21 y=$(echo $x | sed -e 's,.in$,,')
22 sed -e "s:@ROOT@:$root:g" <"$x" >"$y"
25 # now do an update to reflect any config changes
26 echo "Starting '$root/exec/update"
27 "$root/exec/update" "$root"
29 (for fn in populate_licenses quit; do
31 done) | "$root/exec/license" "$root"
33 (for fn in populate_depend_aliases populate_sysreq populate_forcedep quit; do
35 done) | "$root/exec/depend" "$root"