]> git.donarmstrong.com Git - cran2deb.git/blob - branch/double_build/exec/repopulate
ab3ea6039fcaf5720569a8f962d808dc48dac14a
[cran2deb.git] / branch / double_build / exec / repopulate
1 #!/bin/sh
2 ## DOC: cran2deb repopulate
3 ## DOC:     repopulate the cran2deb database and configurations from a new cran2deb release
4 ## DOC:
5
6 umask 002
7 root=$1
8 shift
9 for x in $(find /etc/cran2deb/ -type f -name '*.in'); do
10     y=$(echo $x | sed -e 's,.in$,,')
11     sed -e "s:@ROOT@:$root:g" <"$x" >"$y"
12 done
13
14 # now do an update to reflect any config changes
15 "$root/exec/update" "$root"
16
17 (for fn in populate_licenses quit; do
18     cat "$root/data/$fn"
19 done) | "$root/exec/license" "$root"
20
21 (for fn in populate_depend_aliases populate_sysreq populate_forcedep quit; do
22     cat "$root/data/$fn"
23 done) | "$root/exec/depend" "$root"
24