~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/samples/date/readme.txt

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2005-05-21 22:44:31 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: package-import@ubuntu.com-20050521224431-r7rktfhnu1n4tf1g
Tags: 2.1-2.1
Rename icu-doc to icu21-doc. icu-doc is built by the icu28 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
icudate: a sample program which displays the current date
 
2
 
 
3
This sample demonstrates
 
4
         Formatting a date
 
5
         Outputting text in the default codepage to the console
 
6
 
 
7
         
 
8
Files:
 
9
    date.c                      Main source file
 
10
    uprint.h                   codepage output convenience header
 
11
    uprint.h                   codepage output convenience implementation
 
12
    date.dsw                    Windows MSVC workspace.  Double-click this to get started.
 
13
    date.dsp                    Windows MSVC project file
 
14
 
 
15
To Build icudate on Windows
 
16
    1.  Install and build ICU
 
17
    2.  In MSVC, open the workspace file icu\samples\date\date.dsw
 
18
    3.  Choose a Debug or Release build.
 
19
    4.  Build.
 
20
        
 
21
To Run on Windows
 
22
    1.  Start a command shell window
 
23
    2.  Add ICU's bin directory to the path, e.g.
 
24
            set PATH=c:\icu\bin;%PATH%
 
25
        (Use the path to where ever ICU is on your system.)
 
26
    3.  cd into the icudate directory, e.g.
 
27
            cd c:\icu\source\samples\date\debug
 
28
    4.  Run it
 
29
            date
 
30
 
 
31
To Build on Unixes
 
32
    1.  Build ICU.  icudate is built automatically by default unless samples are turned off.
 
33
        Specify an ICU install directory when running configure,
 
34
        using the --prefix option.  The steps to build ICU will look something
 
35
        like this:
 
36
           cd <icu directory>/source
 
37
           runConfigureICU <platform-name> --prefix <icu install directory> [other options]
 
38
           gmake all
 
39
           
 
40
    2.  Install ICU, 
 
41
           gmake install
 
42
           
 
43
 To Run on Unixes
 
44
           cd <icu directory>/source/samples/date
 
45
           
 
46
           gmake check
 
47
               -or- 
 
48
 
 
49
           export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
 
50
           date
 
51
           
 
52
           
 
53
 Note:  The name of the LD_LIBRARY_PATH variable is different on some systems.
 
54
        If in doubt, run the sample using "gmake check", and note the name of
 
55
        the variable that is used there.  LD_LIBRARY_PATH is the correct name
 
56
        for Linux and Solaris.
 
57