View check-for-src-pattern
#! /bin/bash | |
# | |
# simple script to check for a given string pattern in any | |
# .c, .h, .cpp, .cxx, .m, .mm, etc source files | |
# | |
# you can pass your own list of extensions/file patterns as well: | |
# check-for-src-pattern . "foo" .h .cpp .py .sh Makefile | |
# | |
# Dan Wilcox <danomatika@gmail.com> 2014, 2016 | |
# |
View Makefile.iphone
# Configuration for iPhone OS, builds static libs for iOS and the iOSSimulator | |
# | |
# You can make a fat lib (iOS + iOSSimulator) using lipo: | |
# lipo -c libfreeimage-simulator.a libfreeimage-armv7.a -o libfreeimage.a | |
# | |
# Example: build & link fat lib for armv6, armv7, armv7s, & simulator | |
# | |
# make -f Makefile.iphone | |
# sed -i tmp "s|ARCH_PHONE =.*|ARCH_PHONE = armv7s|" Makefile.iphone | |
# make -f Makefile.iphone |
View Makefile.osx
# Configuration for Max OSX, builds fat 32/64 bit static & dynamic libs | |
include Makefile.srcs | |
# Update this based on your installed SDKs | |
MACOSX_SDK = 10.8 | |
MACOSX_MIN_SDK = 10.6 | |
# Find SDK path via xcode-select, backwards compatible with Xcode vers < 4.5 | |
MACOSX_SYSROOT = $(shell xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$(MACOSX_SDK).sdk |
View say-result
#! /bin/bash | |
# | |
# say-result: speaks the result of a given command | |
# put this in a location that is added to the shell bin path | |
# | |
# usage: say-result [command & options] | |
# | |
# examples: | |
# say-result make | |
# say-result false |