X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=branch%2Fdouble_build%2Fexec%2Frepopulate;fp=branch%2Fdouble_build%2Fexec%2Frepopulate;h=ab3ea6039fcaf5720569a8f962d808dc48dac14a;hb=bbe8a759637a74b5036c8c7345de55a96cb7bbd6;hp=0000000000000000000000000000000000000000;hpb=449efd24870d395eb1edfd4d3a59e239c8cc5547;p=cran2deb.git diff --git a/branch/double_build/exec/repopulate b/branch/double_build/exec/repopulate new file mode 100755 index 0000000..ab3ea60 --- /dev/null +++ b/branch/double_build/exec/repopulate @@ -0,0 +1,24 @@ +#!/bin/sh +## DOC: cran2deb repopulate +## DOC: repopulate the cran2deb database and configurations from a new cran2deb release +## DOC: + +umask 002 +root=$1 +shift +for x in $(find /etc/cran2deb/ -type f -name '*.in'); do + y=$(echo $x | sed -e 's,.in$,,') + sed -e "s:@ROOT@:$root:g" <"$x" >"$y" +done + +# now do an update to reflect any config changes +"$root/exec/update" "$root" + +(for fn in populate_licenses quit; do + cat "$root/data/$fn" +done) | "$root/exec/license" "$root" + +(for fn in populate_depend_aliases populate_sysreq populate_forcedep quit; do + cat "$root/data/$fn" +done) | "$root/exec/depend" "$root" +