Skip to content

Commit aedb577

Browse files
author
A Wokaty
committed
Remove changes from BBS-make-OUTGOING.py and 3.20 propagation files
1 parent 34621e6 commit aedb577

File tree

4 files changed

+3
-33
lines changed

4 files changed

+3
-33
lines changed

BBS-make-OUTGOING.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import os
1212
import time
1313
import shutil
14-
import subprocess
1514

1615
import bbs.fileutils
1716
import bbs.parse
@@ -121,7 +120,6 @@ def copy_outgoing_pkgs(products_in_subdir, source_node):
121120
if BBSvars.buildtype in ['workflows', 'books', 'bioc-mac-arm64']:
122121
pass
123122
elif source_node:
124-
# pdf manuals
125123
pdf_file = os.path.join(BBSvars.products_in_rdir.path,
126124
BBSutils.getSourceNode(),
127125
'checksrc',
@@ -134,20 +132,6 @@ def copy_outgoing_pkgs(products_in_subdir, source_node):
134132
os.link(pdf_file, dst) # create hard link to avoid making a copy
135133
else:
136134
print("BBS> [stage6b] SKIPPED (file %s doesn't exist)" % pdf_file)
137-
# html manuals
138-
rel_link = "../../%s/man/%s.html"
139-
hooks = f"hooks <- list(pkg_href = function(pkg) sprintf('{rel_link}', pkg, pkg));"
140-
html_file = os.path.join(BBSvars.Central_rdir.path,
141-
"OUTGOING/manuals",
142-
'%s.html' % pkg)
143-
Rexpr = hooks + f"tools::pkg2HTML('{pkg_path}',out='{html_file}',hooks=hooks)"
144-
cmd = BBSbase.Rexpr2syscmd(Rexpr)
145-
try:
146-
print(Rexpr)
147-
subprocess.run(cmd, stdout=None, stderr=subprocess.STDOUT,
148-
shell=True, check=True)
149-
except subprocess.CalledProcessError as e:
150-
print("BBS> [stage6b] SKIPPED (could not generate %s)" % html_file)
151135
print('BBS> [stage6b] END copying outgoing packages from %s.' % srcdir)
152136
return
153137

propagation/3.20/updateReposPkgs-bioc.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ WIN_CONTRIB="$REPOS_ROOT/bin/windows/contrib/$R_VERSION"
1717
MAC_BIG_SUR_x86_64_CONTRIB="$REPOS_ROOT/bin/macosx/big-sur-x86_64/contrib/$R_VERSION"
1818
MAC_BIG_SUR_arm64_CONTRIB="$REPOS_ROOT/bin/macosx/big-sur-arm64/contrib/$R_VERSION"
1919

20-
META_SRC="$SRC_CONTRIB/Meta"
21-
META_R_EXPR="source('/home/biocbuild/BBS/utils/makeMetaDbs.R')"
22-
2320
if [ ! -f "$PROPAGATION_DB_FILE" ]; then
2421
echo "ERROR: $PROPAGATION_DB_FILE not found. Did postrun.sh run?"
2522
exit 1
@@ -61,17 +58,6 @@ update_repo "$MAC_BIG_SUR_arm64_CONTRIB" "mac.binary.big-sur-arm64" "tgz"
6158

6259
echo ""
6360

64-
echo ""
65-
echo "========================================================================"
66-
/bin/date
67-
echo "------------------------------------------------------------------------"
68-
69-
echo "Updating $META_SRC with aliases and cross refences dbs..."
70-
$Rscript -e "$META_R_EXPR; try(makeMetaDbs('$PROPAGATION_DB_FILE', '$REPOS_ROOT', '$META_SRC'))"
71-
72-
echo ""
73-
74-
7561
## FIXME: Why aren't manuals propagated based on the same criteria as source
7662
## packages? Looks like the former are propagated based on their timestamps
7763
## only (see below) while for source packages we use the more refined
@@ -82,7 +68,7 @@ MANUALS_DEST="$REPOS_ROOT/manuals"
8268
MANUALS_SRC="$BBS_OUTGOING_DIR/manuals"
8369
echo "Updating $BIOC_VERSION/bioc repo with reference manuals..."
8470
for i in `ls $MANUALS_SRC`; do
85-
pkg=`echo $i| awk '{split($0,a,".(html|pdf)"); print(a[1])}'`
71+
pkg=`echo $i| awk '{split($0,a,".pdf"); print(a[1])}'`
8672
mkdir -p $MANUALS_DEST/$pkg/man
8773
cp --update --verbose $MANUALS_SRC/$i $MANUALS_DEST/$pkg/man
8874
done

propagation/3.20/updateReposPkgs-data-annotation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ MANUALS_DEST="$REPOS_ROOT/manuals"
5454
MANUALS_SRC="$BBS_OUTGOING_DIR/manuals"
5555
echo "Updating $BIOC_VERSION/data/annotation repo with reference manuals..."
5656
for i in `ls $MANUALS_SRC`; do
57-
pkg=`echo $i| awk '{split($0,a,".(html|pdf)"); print(a[1])}'`
57+
pkg=`echo $i| awk '{split($0,a,".pdf"); print(a[1])}'`
5858
mkdir -p $MANUALS_DEST/$pkg/man
5959
cp --update --verbose $MANUALS_SRC/$i $MANUALS_DEST/$pkg/man
6060
done

propagation/3.20/updateReposPkgs-data-experiment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ MANUALS_DEST="$REPOS_ROOT/manuals"
5454
MANUALS_SRC="$BBS_OUTGOING_DIR/manuals"
5555
echo "Updating $BIOC_VERSION/data/experiment repo with reference manuals..."
5656
for i in `ls $MANUALS_SRC`; do
57-
pkg=`echo $i| awk '{split($0,a,".(html|pdf)"); print(a[1])}'`
57+
pkg=`echo $i| awk '{split($0,a,".pdf"); print(a[1])}'`
5858
mkdir -p $MANUALS_DEST/$pkg/man
5959
cp --update --verbose $MANUALS_SRC/$i $MANUALS_DEST/$pkg/man
6060
done

0 commit comments

Comments
 (0)