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
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
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
#!/bin/sh | |
# Zipping MacOSX contains additional files and folder that consume space in the generated ZIP. | |
# this script removes those files. | |
# If you unzip on MacOSX system you will not see those files. | |
# For cross platform use of ZIP files the additional files like ".DS_store" and "___MACOSX" folder | |
# are removed with this script. | |
zip -d $1 __MACOSX/\* | |
zip -d $1 \*.DS_Store |
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
——————— Group Pattern and Use Found Patterns ——————————————————————————————————————————————————————— | |
see https://gist.github.com/ccstone/5385334 for further details on definition of regular expression | |
(1) Search Example: | |
enwiki: 'https://en.wikipedia.org', | |
dewiki: 'https://de.wikipedia.org', | |
roa_rupwiki: 'https://roa-rup.wikipedia.org', | |
(2) Replace Example: | |
enwiki: 'https://en.wikipedia.org', |