Mercurial > hg > aboriginal
annotate sources/control-images/lfs-bootstrap/mnt/build/flex.sh @ 1288:c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 17 Nov 2010 22:09:19 -0600 |
parents | |
children |
rev | line source |
---|---|
1288
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/sh |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 /mnt/build/generic-check.sh |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 # Create lex wrapper |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 cat > /usr/bin/lex << 'EOF' && |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 #!/bin/sh |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 exiec /usr/bin/flex -l "$@" |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 EOF |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 chmod 755 /usr/bin/lex || exit 1 |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 if [ ! -z "$DOCS" ] |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 then |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 mkdir /usr/share/doc/flex && |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 cp doc/flex.pdf /usr/share/doc/flex |
c054a7a36cd9
Add rather a lot of Linux From Scratch 6.7 building infrastructure. Needs a bit more debugging.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 fi |