source: other-projects/nightly-tasks/crons-and-scripts/macos_nightly_cronjobs.sh_unused@ 32395

Last change on this file since 32395 was 32395, checked in by ak19, 6 years ago

Committing old toro or rata nightly cron script from a time before the macos_gsbins_cron.sh that now generates nightly bins (and release bins)

File size: 3.2 KB
Line 
1
2
3
4#!/bin/bash
5
6# ak19.
7
8## Google for: cron job mac
9## http://apple.stackexchange.com/questions/9373/how-do-i-run-a-cron-job-on-a-mac
10## http://apple.stackexchange.com/questions/3030/how-can-i-run-stop-relaunch-an-application-automatically-at-boot-l\
11ogin-some-oth
12
13#/home/nzdl/crontab-l file contained:
14##0 1 * * * /Volumes/Research/nzdl/envi/bin/envi caveats &> /Volumes/Research/nzdl/logs/caveats.log
15
16##0 4 * * * /Volumes/Research/nzdl/envi/bin/envi stables &> /Volumes/Research/nzdl/logs/stables.log
17
18##0 * * * * date >> /Volumes/Research/nzdl/cronout.txt
19
20
21
22# set up svn 1.6 and Java 1.6
23#HINT=/System/Library/Frameworks/JavaVM.framework/Home # Java1.5
24
25#export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
26#export PATH=/opt/subversion/bin/:$JAVA_HOME/bin:$PATH
27#export HINT=/System/Library/Frameworks/JavaVM.framework/Versions/Current
28
29
30#HINT=/System/Library/Frameworks/JavaVM.framework/Versions/Current
31#export PATH=/opt/subversion/bin/:$JAVA_HOME/Commands:$PATH
32
33echo "@@@ Setting environment for release-kit generation to: " >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
34echo "@@@ JAVA_HOME: $JAVA_HOME" >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
35echo "@@@ PATH: $PATH" >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
36
37# ensure disk1 is unmounted
38echo "@@@ Ejecting disk 1 so that wrapping step (.dmg creation) won't suddenly fail" >> /Volumes/Research/nzdl/logs\
39/caveats.log 2>&1
40
41hdiutil eject /dev/disk1 >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
42
43# update the release-kits
44echo "@@@ NOT svn-updating the release-kits. Turn this on in $0" >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
45#cd /home/nzdl/release-kits
46#svn up
47
48echo "********************* DONE $0 *****************" >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
49
50# Finally, generate the caveats
51cd /Volumes/Research/nzdl/envi/bin
52./envi caveats >> /Volumes/Research/nzdl/logs/caveats.log 2>&1
53##./envi stables &> /Volumes/Research/nzdl/logs/stables.log
Note: See TracBrowser for help on using the repository browser.