#!/bin/bash # A simple Hello World demo of the GNU build tools. # Adopted by Wayne Pollock, Tampa Florida USA, # from the tutorial "Learning the GNU development tools" # originally written by Eleftherios Gkioulekas, and currently # (2/2005) maintained by Marcelo Roberto Jimenez. This # tutorial can be found at: # http://autotoolset.sourceforge.net/tutorial.html # CREATE THE PROJECT DIRECTORIES: cd ~ mkdir hello-1.0 cd hello-1.0 mkdir src doc # CREATE THE C PROGRAM SOURCE CODE: cat > src/hello.c < #endif #include int main ( void ) { printf( "Hey there, world!\n" ); return 0; } EOF # CREATE MAKEFILE.AM (for Automake) FILES (one per directory): cat > Makefile.am < src/Makefile.am < doc/Makefile.am < doc/hello.man < configure.ac <], [hello]) AC_CONFIG_SRCDIR([src/hello.c]) AC_CONFIG_HEADER([config.h]) AC_CHECK_HEADER([stdio.h]) AC_REVISION([$Revision: 1.0 $]) AM_INIT_AUTOMAKE AC_PROG_CC AC_PROG_INSTALL AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile]) AC_OUTPUT EOF # CREATE SOME ADDITIONAL TEXT FILES TO BE INCLUDED IN THE DISTRIBUTION: cat > AUTHORS < entire files -> hello.c modifications -> all Kode Vicious modifications-> hello.c (specific changes here) EOF cat > THANKS < README <