3 ## DOC: cran2deb repopulate
4 ## DOC: repopulate the cran2deb database and configurations from a new cran2deb release
10 if [ -e /etc/cran2deb/config ]; then
11 . /etc/cran2deb/config;
12 elif [ -r ~/.cran2deb/config ]; then
17 if [ ! -d "$dir" ]; then
18 echo "Dir $dir not existing."
23 echo "Setting 'root' var to '$1'."
26 for x in $(find "${dir}" -type f -name '*.in'); do
28 y=$(echo $x | sed -e 's,.in$,,')
29 sed -e "s:@ROOT@:$root:g" <"$x" >"$y"
32 # now do an update to reflect any config changes
33 echo "Starting '$root/exec/update"
34 "$root/exec/update" "$root"
36 (for fn in populate_licenses quit; do
38 done) | "$root/exec/license" "$root"
40 (for fn in populate_depend_aliases populate_sysreq populate_forcedep quit; do
42 done) | "$root/exec/depend" "$root"