Skip to content
Open
Show file tree
Hide file tree
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
19 changes: 17 additions & 2 deletions README-dev.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
# Developer's notes for c756 quickies

These files are defined to be used in both host OS and
c756-exer tools container configuratios.
c756-exer tools container configurations.

The following scripts simplify the development process.

## `xfer.sh`: Transfer files to `c756-exer`

After modifying any of these files, run `xfer.sh`to transfer the
updated files into the `profiles` subdirectory of the `c756-exer` repo.
Then commit the updated files to `c756-exer` as well.

Note that `xfer.sh` does more than simply copy the files: It also
modifies their settings to match the different environment in `c756-exer`.
modifies their settings to match the different environment in `c756-exer`.

## `fixup.sh`: Automatically edit `.ec2.mak` to your settings

The utility `fixup.sh` can be used when revising `.ec2.mak`. The committed
revisions have to have empty values for variables such as `SGI_WFH`, yet
when running tests you need your actual values set.

To get around this, edit `fixup.sh` to include your settings for `SGI_SFH`,
`KEY`, and `LKEY`. Then, after editing `.ec2.mak`, commit the file
with empty values, then run `fixup.sh` to set the values correctly for
your use. Then test the file with these correct values.
7 changes: 7 additions & 0 deletions fixup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Update c756-exer/profiles/ec2.mak with a developer's current settings
# Set the variable values to your settings before running
set -o nounset
set -o errexit
set -o xtrace
sed -e 's|SGI_WFH=.*|SGI_WFH=sg-6dfead08|' -e 's|KEY=.*|KEY=aws|' -e 's|LKEY=.*|LKEY=~/.ssh/aws.pem|' -i .bak ../c756-exer/profiles/ec2.mak