forked from RebelTechnology/OwlProgram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOwl
More file actions
executable file
·26 lines (19 loc) · 665 Bytes
/
Owl
File metadata and controls
executable file
·26 lines (19 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
SRC=$PWD # current working directory
PATCH=$1 # first command line argument to script is the patch name
shift;
TARGET="$@" # second argument is target, e.g. run
OWLPROGRAM=~/owl/OwlProgram
usage(){
echo "\
^^ Owl ^^
Build an Owl patch and upload it to the device.
You must be in the folder containing the patch.
$ Owl PATCH [TARGET=run] [any other make options/target]
You need to set the path to OwlProgram in the configuration file
"
}
[ -z "$PATCH" ] && { usage; exit 1; }
[ -z "$TARGET" ] && TARGET=run;
make -C $OWLPROGRAM PATCHNAME=$PATCH PATCHSOURCE=$SRC $TARGET
echo make -C $OWLPROGRAM PATCHNAME=$PATCH PATCHSOURCE=$SRC $TARGET