Changeset 540 for trunk/test


Ignore:
Timestamp:
Dec 29, 2007, 3:40:23 AM (14 years ago)
Author:
Peter Johansson
Message:

fixes automatic update of revision and copyright year in --version output. Options --version and --verbose can no be combined to get a slightly more detailed description.

Location:
trunk/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Makefile.am

    r519 r540  
    4040utility_test_SOURCES = utility_test.cc
    4141
    42 rootdir = $(srcdir)/toy_project
    43 targetdir = $(builddir)/generated_output
    44 do_subst = $(SED) -e 's,@srcdir,$(srcdir),g' \
    45             -e 's,@top_builddir,$(top_builddir),g' \
    46             -e 's,@builddir,$(builddir),g' \
    47             -e 's,@MKDIR_P,$(MKDIR_P),g' \
    48             -e 's,@rootdir,$(rootdir),g' \
    49             -e 's,@targetdir,$(targetdir),g' \
    50                   -e 's,@SHELL,$(SHELL),g'
     42rootdir = $(abs_srcdir)/toy_project
     43targetdir = $(abs_builddir)/generated_output
     44repodir = $(abs_srcdir)/repo/trunk
     45
     46do_subst = $(SED) -e 's,%SHELL%,$(SHELL),g' \
     47            -e 's,%SED%,$(SED),g' \
     48            -e 's,%DISTFILES%,$(DISTFILES),g' \
     49            -e 's,%GREP%,$(GREP),g' \
     50            -e 's,%abs_srcdir%,$(abs_srcdir),g' \
     51            -e 's,%repodir%,$(repodir),g' \
     52            -e 's,%rootdir%,$(rootdir),g' \
     53            -e 's,%targetdir%,$(targetdir),g' \
     54            -e 's,%abs_top_builddir%,$(abs_top_builddir),g'
     55
    5156
    5257check_repo_status.sh: check_repo_status.sh.in Makefile
    5358  @$(do_subst) < $< > $@
    5459  @chmod +x $@
    55   @echo create $@
     60  @echo creating $@
    5661
    5762test_repo.sh: test_repo.sh.in Makefile
    5863  @$(do_subst) < $< > $@
    5964  @chmod +x $@
    60   @echo create $@
     65  @echo creating $@
    6166
    6267clean-local:
  • trunk/test/check_repo_status.sh.in

    r519 r540  
    1 #!@SHELL
     1#!%SHELL%
    22# $Id$
    33
  • trunk/test/test_repo.sh.in

    r539 r540  
    1 #!@SHELL
     1#!%SHELL%
    22# $Id$
    33
     
    2222
    2323# test repository does not exist and need to be checked out
    24 if [ ! -d @rootdir ]; then
    25     repodir=`cd "@srcdir" && pwd`;
     24if [ ! -d %rootdir% ]; then
     25    repodir=`cd "%abs_srcdir%" && pwd`;
    2626    repodir=$repodir"/repo/trunk";
    27     svn checkout file://$repodir @rootdir;
     27    svn checkout file://$repodir %rootdir%;
    2828fi
    2929
    30 svn update @rootdir > /dev/null;
     30svn update %rootdir% > /dev/null;
    3131
    32 if [ ! -d @targetdir ]; then
    33     mkdir @targetdir;
     32if [ ! -d %targetdir% ]; then
     33    mkdir %targetdir%;
    3434fi
    3535
    36 @top_builddir/bin/svndigest -r @rootdir -t @targetdir -f \
     36%abs_top_builddir%/bin/svndigest -r %rootdir% -t %targetdir% -f \
    3737--ignore-cache --no-report $1;
    3838
    39 @top_builddir/bin/svndigest -r @rootdir -t @targetdir -f --copyright $1;
     39%abs_top_builddir%/bin/svndigest -r %rootdir% -t %targetdir% -f --copyright $1;
    4040
Note: See TracChangeset for help on using the changeset viewer.