Mercurial > louis > kiibohd-controller
annotate Lib/CMake/writer @ 401:99f93dec8fea
Start removing select Linux-isms
bash might not be in /bin. Don't expect it there.
author | Dan McGregor <dan.mcgregor@usask.ca> |
---|---|
date | Mon, 10 Aug 2015 14:49:46 -0600 |
parents | c127188dcc80 |
children |
rev | line source |
---|---|
401
99f93dec8fea
Start removing select Linux-isms
Dan McGregor <dan.mcgregor@usask.ca>
parents:
149
diff
changeset
|
1 #!/usr/bin/env bash |
149
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
2 #| Jacob Alexander 2014 |
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
3 #| Arg List |
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
4 #| 1 - File to write to (e.g. final_chip) |
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
5 #| 2 - Contents writing to file (e.g. at90usb1286) |
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
6 |
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
7 printf "$2" > "$1" |
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
8 |
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
9 exit $? |
c127188dcc80
Adding compiler change detection.
Jacob Alexander <haata@kiibohd.com>
parents:
diff
changeset
|
10 |