~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcdocs/olinuxex/ex23.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Program Example23;
 
2
 
 
3
{ Program to demonstrate the Chmod function. }
 
4
 
 
5
Uses oldlinux;
 
6
 
 
7
Var F : Text;
 
8
 
 
9
begin
 
10
  { Create a file }
 
11
  Assign (f,'testex21');
 
12
  Rewrite (F);
 
13
  Writeln (f,'#!/bin/sh');
 
14
  Writeln (f,'echo Some text for this file');
 
15
  Close (F);
 
16
  { Octal() makes the correct number from a
 
17
    number that LOOKS octal }
 
18
  Chmod ('testex21',octal (777));
 
19
  { File is now executable  }
 
20
  execl ('./testex21');
 
21
end.