02ceec685f431d51256bdddd3cbc952ed5b37396
max
  Fri Sep 18 07:08:40 2026 -0700
methbase2 otto: makefile to install the scripts into the otto directory, refs #34246

#Preview2 week - bugs introduced now will need a build patch to fix
"make install" syntax-checks the three scripts and copies them to
/hive/data/outside/otto/methbase2/, following the other otto makefiles.

methbaseDownload is installed there for the record, but it does not run there:
methbaseOtto.sh ssh's to hgdownload and runs it against the mirror, so the data
never crosses to hgwdev. "make installRemote" pushes it to hgdownload, kept as
a separate target so copying to another machine is never a side effect of
"make install".

diff --git src/hg/utils/otto/methbase2/makefile src/hg/utils/otto/methbase2/makefile
new file mode 100644
index 00000000000..5357471b196
--- /dev/null
+++ src/hg/utils/otto/methbase2/makefile
@@ -0,0 +1,20 @@
+PREFIX=/hive/data/outside/otto/methbase2/
+
+# methbaseDownload is installed here for the record and as the source for the
+# hgdownload copy, but it does NOT run here: methbaseOtto.sh ssh's to
+# hgdownload and runs it there, against the mirror, so the data never crosses
+# to hgwdev. After "make install", push it to hgdownload with "make installRemote".
+DOWNLOAD_HOST=qateam@hgdownload
+REMOTE_DIR=/mirrordata/hubs/methbase/
+
+install:
+	bash -n methbaseOtto.sh
+	python3 -c 'import ast; ast.parse(open("methbaseDownload").read())'
+	python3 -c 'import ast; ast.parse(open("processMethbaseHub").read())'
+	mkdir -p ${PREFIX}
+	cp methbaseOtto.sh methbaseDownload processMethbaseHub ${PREFIX}
+
+# separate target on purpose: this writes to another machine, so it is never a
+# side effect of "make install"
+installRemote:
+	scp methbaseDownload ${DOWNLOAD_HOST}:${REMOTE_DIR}