Bill Hoffman from Kitware gives presentation about CMake and a pack of related tools to the happiest easygoing working nation on the Earth:
It’s worth to watch if interested in CMake.
Bill Hoffman from Kitware gives presentation about CMake and a pack of related tools to the happiest easygoing working nation on the Earth:
It’s worth to watch if interested in CMake.
I’ve extended Sean’s idea of baking PostGIS-enabled databases using GNU Make a little bit and prepared new version of Makefile.postgis.
How to use it:
$ ln -s Makefile.postgis Makefile
make to get basic usage information:
$ make ****** Makefile.postgis usage ****** *** Create new PostGIS database: DBNAME=mydb make -f Makefile.postgis create *** Drop PostGIS database: DBNAME=mydb make -f Makefile.postgis drop *** Check if database exists and PostGIS if enabled with PostGIS: DBNAME=mydb make -f Makefile.postgis check *** Check if database exists: DBNAME=mydb make -f Makefile.postgis check-db *** Check if database is enabled with PostGIS: DBNAME=mydb make -f Makefile.postgis check-postgis
$ DBNAME=mydb make check-db ****** Makefile.postgis ****** ****** Database 'mydb' not found
$ DBNAME=mydb make create ****** Makefile.postgis ****** ****** Creating database 'mydb'... ****** Loading PostGIS into 'mydb'...
$ DBNAME=mydb make check ****** Makefile.postgis ****** ****** Database 'mydb' found ****** Makefile.postgis ****** ****** Database 'mydb' is enabled with PostGIS 1.4 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
$ DBNAME=mydb make drop
I have just discovered colormake utility – a simple wrapper around make to colorize its output.
colormake is really helpful for someone who heavily works in Unix shell environments to visually analyse messages generated during programs compilation. Simply, colors are used as another language for communication with a user, complementing letters printed out to the console. The colormake wrapper in combination with clean console fonts like Terminus serve as a great tandem in hacker daily job.
First, I started to use colormake 0.2 on Ubuntu Linux:
$ sudo apt-get install colormake
Next, I tried it on Mac OS X 10.5, though with no luck. Basically, because of subtle differences in Bash and format of GCC output messages. So, simple patch (colormake-0.2-mloskot.patch) is required to get colormake 0.2 working on Mac OS X. I’ve sent this patch to Bjarni – the author of colormake, so perhaps he will like to include it in next (0.3?) version. BTW, thanks to Bjarni for the colormake tool!