]> Pileus Git - ~andy/gtk/blob - examples/extract.sh
Start mass update for GTK 1.1 Look for the best version of awk Fix FD leak
[~andy/gtk] / examples / extract.sh
1 #! /bin/sh
2 # extract - extract C source files from GTK Tutorial
3 # Copyright (C) Tony Gale 1998
4 # Contact: gale@gtk.org
5 #
6 # extract.awk command Switches:
7 # -c : Just do checking rather than output files
8 # -f <filename> : Extract a specific file
9 # -d : Extract files to current directory
10  
11 if [ -x /usr/bin/gawk ]; then
12  gawk -f extract.awk ../docs/gtk_tut.sgml $1 $2 $3 $4 $5
13 else
14  if [ -x /usr/bin/nawk ]; then
15   nawk -f extract.awk ../docs/gtk_tut.sgml $1 $2 $3 $4 $5
16  else
17   if [ -x /usr/bin/awk ]; then
18    awk -f extract.awk ../docs/gtk_tut.sgml $1 $2 $3 $4 $5
19   else 
20    if [ -x /bin/awk ]; then
21     awk -f extract.awk ../docs/gtk_tut.sgml $1 $2 $3 $4 $5
22    else
23     echo "Can't find awk... please edit extract.sh by hand"
24    fi
25   fi
26  fi
27 fi
28