-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
69 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
BUILD=${CURDIR}/build | ||
INCLUDE=osagetlang.sh osagitfilter.sh setup.sh README.md LICENSE | ||
|
||
build: $(INCLUDE) | ||
@[ -d $(BUILD) ] || mkdir -p $(BUILD) | ||
zip $(BUILD)/osagitfilter.zip $^ | ||
tar -cvzf $(BUILD)/osagitfilter.tar.gz $^ | ||
|
||
clean: | ||
@rm -Rf build | ||
|
||
test: | ||
${CURDIR}/test.sh | ||
|
||
.PHONY: clean test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
---=[ osagitfilter - v0.4 ]=---------------------------------------------- | ||
usage: osagitfilter --clean [--forbidden FORBIDDEN] [FILE] #translates OSA script to text, FORBIDDEN is colon-seperated | ||
osagitfilter --smudge [FILE] #translates text to OSA script | ||
usage: osagitfilter command [options] [FILE] | ||
|
||
command (use one): | ||
--clean Translates OSA script to text, to be put into git | ||
--smudge Translates text stored in git to OSA script | ||
|
||
arguments (all optional): | ||
-f, --forbidden Provide forbidden languages. '-' for empty list, defaults to 'AppleScript Debugger' | ||
-n, --no-header Don't write a OSA-lang header when it's the default language | ||
-d, --debug Write debug info to stderr | ||
-l, --log Write debug info to '/Users/doekman/Library/Logs/Catsdeep//osagitfilter.log' | ||
-h, -?, --help Show this help message and exit | ||
-v, --version Show program's version number and exit | ||
FILE Filename of current stream. Useful for debuggin only | ||
|
||
This script translates input from stdin to stdout only. The options '--forbidden' and '--no-header' | ||
are only used with the '--clean' command. |