chilon Code
Brought to you by:
tuxjay
#!/bin/sh prefix=/usr/local for arg in $* ; do case $arg in --prefix=*) prefix=${arg#--prefix=} ;; *) echo "unknown argument $arg" ;; esac done echo "prefix = $prefix" > Makefile.config if [ $(uname -s) = Linux ] ; then poll_type=epoll notify_type=inotify else poll_type=kqueue notify_type=kqueue fi sed -e "s/@POLL_TYPE@/$poll_type/" -e "s/@NOTIFY_TYPE@/$notify_type/" config.hpp.in > config.hpp echo "modified config.hpp for your system"