mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
337bdee253
Mon Dec 7 15:15:06 GMT 1998 Tony Gale <gale@gtk.org> * docs/gtk_tut.sgml: Start mass update for GTK 1.1 * examples/extract.sh: Look for the best version of awk * examples/extract.awk: Fix FD leak * example/base: minimal example from Tutorial
29 lines
746 B
Bash
Executable File
29 lines
746 B
Bash
Executable File
#! /bin/sh
|
|
# extract - extract C source files from GTK Tutorial
|
|
# Copyright (C) Tony Gale 1998
|
|
# Contact: gale@gtk.org
|
|
#
|
|
# extract.awk command Switches:
|
|
# -c : Just do checking rather than output files
|
|
# -f <filename> : Extract a specific file
|
|
# -d : Extract files to current directory
|
|
|
|
if [ -x /usr/bin/gawk ]; then
|
|
gawk -f extract.awk ../docs/gtk_tut.sgml $1 $2 $3 $4 $5
|
|
else
|
|
if [ -x /usr/bin/nawk ]; then
|
|
nawk -f extract.awk ../docs/gtk_tut.sgml $1 $2 $3 $4 $5
|
|
else
|
|
if [ -x /usr/bin/awk ]; then
|
|
awk -f extract.awk ../docs/gtk_tut.sgml $1 $2 $3 $4 $5
|
|
else
|
|
if [ -x /bin/awk ]; then
|
|
awk -f extract.awk ../docs/gtk_tut.sgml $1 $2 $3 $4 $5
|
|
else
|
|
echo "Can't find awk... please edit extract.sh by hand"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|