Skip to content

Commit e5a1f9e

Browse files
committed
Fix meta creation
1 parent 6f5d53d commit e5a1f9e

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

propagation/3.20/updateReposPkgs-bioc.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ 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+
2023
if [ ! -f "$PROPAGATION_DB_FILE" ]; then
2124
echo "ERROR: $PROPAGATION_DB_FILE not found. Did postrun.sh run?"
2225
exit 1
@@ -63,6 +66,7 @@ echo "========================================================================"
6366
/bin/date
6467
echo "------------------------------------------------------------------------"
6568

69+
echo "Updating $META_SRC with aliases and cross refences dbs..."
6670
$Rscript -e "$META_R_EXPR; try(makeMetaDbs('$PROPAGATION_DB_FILE', '$REPOS_ROOT', '$META_SRC'))"
6771

6872
echo ""
@@ -83,8 +87,5 @@ for i in `ls $MANUALS_SRC`; do
8387
cp --update --verbose $MANUALS_SRC/$i $MANUALS_DEST/$pkg/man
8488
done
8589

86-
echo "Updating $SRC_CONTRIB with aliases and cross references dbs ..."
87-
cp --recursive --update --verbose $META_SRC $SRC_CONTRIB
88-
8990
echo "DONE."
9091
exit 0

propagation/3.21/updateReposPkgs-bioc.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
set -e # exit immediately if a simple command returns a non-zero status
43

54
cd "$HOME/propagation/3.21"
@@ -19,6 +18,7 @@ MAC_BIG_SUR_arm64_CONTRIB="$REPOS_ROOT/bin/macosx/big-sur-arm64/contrib/$R_VERSI
1918

2019
META_SRC="$SRC_CONTRIB/Meta"
2120
META_R_EXPR="source('/home/biocbuild/BBS/utils/makeMetaDbs.R')"
21+
MEAT_PATH="/home/biocbuild/bbs-$BIOC_VERSION-bioc/meat"
2222

2323
if [ ! -f "$PROPAGATION_DB_FILE" ]; then
2424
echo "ERROR: $PROPAGATION_DB_FILE not found. Did postrun.sh run?"
@@ -66,7 +66,8 @@ echo "========================================================================"
6666
/bin/date
6767
echo "------------------------------------------------------------------------"
6868

69-
$Rscript -e "$META_R_EXPR; try(makeMetaDbs('$PROPAGATION_DB_FILE', '$REPOS_ROOT', '$META_SRC'))"
69+
echo "Updating $META_SRC with aliases and cross refences dbs..."
70+
$Rscript -e "$META_R_EXPR; try(makeMetaDbs('$PROPAGATION_DB_FILE', '$MEAT_PATH', '$REPOS_ROOT', '$META_SRC'))"
7071

7172
echo ""
7273

@@ -86,8 +87,5 @@ for i in `ls $MANUALS_SRC`; do
8687
cp --update --verbose $MANUALS_SRC/$i $MANUALS_DEST/$pkg/man
8788
done
8889

89-
echo "Updating $SRC_CONTRIB with aliases and cross references dbs ..."
90-
cp --recursive --update --verbose $META_SRC $SRC_CONTRIB
91-
9290
echo "DONE."
9391
exit 0

utils/makeMetaDbs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ makeMetaDbs <- function(db_filepath, repos_root, meta_path) {
1212
}
1313
}
1414

15-
web_dir <- file.path(repos_root "web", "packages")
15+
web_dir <- file.path(repos_root, "web", "packages")
1616
meta_dir <- file.path(meta_path)
1717
if (!dir.exists(meta_dir)) {
1818
dir.create(meta_dir, recursive = TRUE)

0 commit comments

Comments
 (0)