Created
February 2, 2009 00:24
Revisions
-
PhilGeek renamed this gist
Feb 2, 2009 . 1 changed file with 33 additions and 33 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,34 +1,34 @@ #!/bin/sh # # installgawk.sh # # A bash script to install the latest version of GNU awk. Be sure to set the variables to the desired values. # # http://www.gnu.org/software/gawk/ # # Mark Eli Kalderon 2008-03-22 # Gawk. Change to the desired version if necessary VER="3.1.6" GAWK="gawk-${VER}" # Build directories. Change to the desired directories if necessary. GBLDDIR=/var/tmp/${GAWK}-build # Create gawk build directory, but save source files if they exist. test -d ${GBLDDIR} || mkdir ${GBLDDIR} test -d ${GBLDDIR}/${GAWK} && /bin/rm -rf ${GBLDDIR}/${GAWK} cd $GBLDDIR # Download and unpack gawk source. curl http://ftp.gnu.org/gnu/gawk/${GAWK}.tar.gz -O tar -xvzf ${GAWK}.tar.gz cd ${GAWK} # Configure and build gawk. ./configure make make check # Install gawk (in /usr/local/bin/). Will prompt for password. sudo make install -
PhilGeek created this gist
Feb 2, 2009 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ #!/bin/sh # # installgawk.sh # # A bash script to install the latest version of GNU awk. Be sure to set the variables to the desired values. # # http://www.gnu.org/software/gawk/ # # Mark Eli Kalderon 2008-03-22 # Gawk. Change to the desired version if necessary VER="3.1.6" GAWK="gawk-${VER}" # Build directories. Change to the desired directories if necessary. GBLDDIR=/var/tmp/${GAWK}-build # Create gawk build directory, but save source files if they exist. test -d ${GBLDDIR} || mkdir ${GBLDDIR} test -d ${GBLDDIR}/${GAWK} && /bin/rm -rf ${GBLDDIR}/${GAWK} cd $GBLDDIR # Download and unpack gawk source. curl http://ftp.gnu.org/gnu/gawk/${GAWK}.tar.gz -O tar -xvzf ${GAWK}.tar.gz cd ${GAWK} # Configure and build gawk. ./configure make make check # Install gawk (in /usr/local/bin/). Will prompt for password. sudo make install