Medium sized Internalization made by flattener against megalog-2018-05-26
[andk-cpan-tools.git] / bin / cnntp-solver.sh
blob9277b3f19571246a8003bea613305d4e07c3dc1a
1 #!/bin/sh
3 PERL=$HOME/src/installed-perls/v5.16.0/4e6d/bin/perl
4 BINDIR=`dirname $0`
5 CONFIG=$BINDIR/../CPAN-Blame/lib/CPAN/Blame/Config/Cnntp.pm
6 SOLVER_VARDIR=`$PERL $CONFIG solver_vardir`
7 EXT_SRC=`$PERL $CONFIG ext_src`
8 echo "PERL=$PERL
9 BINDIR=$BINDIR
10 CONFIG=$CONFIG
11 SOLVER_VARDIR=$SOLVER_VARDIR
12 EXT_SRC=$EXT_SRC
14 sleep 5
15 set -x
16 set -e
17 while true; do
18 # cd $SOLVER_VARDIR/workdir
19 # cp $SOLVER_VARDIR/workdir/cpanstats.db $SOLVER_VARDIR/workdir/cpanstats.db~
20 # $PERL bin/refill-cpanstatsdb.pl --db=$SOLVER_VARDIR/workdir/cpanstats.db
21 # cd $EXT_SRC/andk-cpan-tools
22 git pull
23 # $PERL -I $EXT_SRC/andk-cpan-tools/CPAN-Blame/lib $EXT_SRC/andk-cpan-tools/bin/sync-sqlite-postgres.pl --max=2500000 --db=dbi:SQLite:dbname=$SOLVER_VARDIR/workdir/cpanstats.db~
24 $PERL -I $EXT_SRC/andk-cpan-tools/CPAN-Blame/lib $EXT_SRC/andk-cpan-tools/bin/cnntp-solver.pl --onlystartwhennojobs
25 : no endless loop if there is a stopfile
26 if [ -e $EXT_SRC/andk-cpan-tools/bin/cnntp-solver.stop ] ; then
27 break
29 done