[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Global-commit] global global/global.c libutil/abs2rel.c libuti...

From: Shigio YAMAGUCHI
Subject: [Global-commit] global global/global.c libutil/abs2rel.c libuti...
Date: Thu, 28 Feb 2008 01:13:51 +0000

CVSROOT:        /sources/global
Module name:    global
Changes by:     Shigio YAMAGUCHI <shigio>       08/02/28 01:13:51

Modified files:
        global         : global.c 
        libutil        : abs2rel.c abs2rel.h find.c 

Log message:
        Modifications to Allow symbolic links.
        I have modified global(1) and gtags(1) to allow symbolic link.
        To realize it, I used normalize_path() and abs2rel() in 
        module instead of realpath(3) library function.
        Though the symbolic link to a directory might confuse users,
        it is originally as such. They should understand the characteristic.
          |  +-GTAGS
          |  +-gtags ----+ (symbolic link to ../work/gtag2)
          |  +-htags --+ | (symbolic link to ../work/htag2)
          |            | |
          +-work       | |
             +-gtag2 <-+ |
             |  +-gtags.c|
             |           |
             +-htag2 <---+
        Current version
        $ cd /tmp/global
        $ gtags
        Warning: './gtags' is a directory. (Ignored)
        Warning: './htags' is a directory. (Ignored)
        $ global -f gtags/gtags.c
        '/tmp/work/gtags/gtags.c' is out of source tree.
        New version
        $ cd /tmp/global
        $ gtags
        $ global -f gtags/gtags.c
        usage              91 gtags/gtags.c  usage(void)
        help               98 gtags/gtags.c  help(void)
        $ global -f gtags/../htags/htags.c
        mkdir              61 htags/htags.c  #define mkdir(path,mode) 
        link               62 htags/htags.c  #define link(one,two) (-1)
        % cd gtags                                      <= get out of the 
source tree
        $ global -f gtags.c
        global: GTAGS not found.
        $ pwd


reply via email to

[Prev in Thread] Current Thread [Next in Thread]