Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cp without -up on Mac #416

Merged
merged 1 commit into from
Mar 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bin/oref0-autotune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ fi
cd $directory && mkdir -p autotune
cp settings/pumpprofile.json autotune/profile.pump.json
# This allows manual users to be able to run autotune by simply creating a settings/pumpprofile.json file.
cp -up settings/pumpprofile.json settings/profile.json
if [[ `uname` == 'Darwin' ]] ; then
cp settings/pumpprofile.json settings/profile.json
else
cp -up settings/pumpprofile.json settings/profile.json
fi
# If a previous valid settings/autotune.json exists, use that; otherwise start from settings/profile.json
cp settings/autotune.json autotune/profile.json && cat autotune/profile.json | json | grep -q start || cp autotune/profile.pump.json autotune/profile.json
cd autotune
Expand Down