Changeset 568


Ignore:
Timestamp:
Mar 12, 2008, 11:08:49 PM (13 years ago)
Author:
Peter Johansson
Message:

using AC_CONFIG_FILES to create shell scripts from *.in files.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r519 r568  
    2727clean-local:
    2828  rm -rf svndigest *~
     29
     30bajs.in: kiss
     31  cp kiss bajs.in
  • trunk/configure.ac

    r567 r568  
    4040test $prefix = NONE && prefix=/usr/local
    4141
    42 AM_CONFIG_HEADER([config.h])
     42AC_CONFIG_HEADER([config.h])
    4343AM_INIT_AUTOMAKE([std-options check-news])
    4444
     
    157157                bin/Makefile
    158158                lib/Makefile
    159                 test/Makefile])
     159                test/Makefile
     160                test/test_repo.sh
     161                test/check_repo_status.sh],
     162               [chmod +x test/test_repo.sh;
     163                chmod +x test/check_repo_status.sh])
    160164
    161165# Print failure status information about selected items, and exit if
  • trunk/test/Makefile.am

    r556 r568  
    4949
    5050toy_project = toy_project
    51 
    52 # some tests need the test repo to be checked out
    53 stats_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.la
    54 
    5551rootdir = $(abs_srcdir)/$(toy_project)
    5652targetdir = $(abs_builddir)/generated_output
    5753repodir = $(abs_srcdir)/repo/trunk
    5854
    59 do_subst = $(SED) -e 's,%SHELL%,$(SHELL),g' \
    60             -e 's,%SED%,$(SED),g' \
    61             -e 's,%DISTFILES%,$(DISTFILES),g' \
    62             -e 's,%GREP%,$(GREP),g' \
    63             -e 's,%abs_srcdir%,$(abs_srcdir),g' \
    64             -e 's,%repodir%,$(repodir),g' \
    65             -e 's,%rootdir%,$(rootdir),g' \
    66             -e 's,%targetdir%,$(targetdir),g' \
    67             -e 's,%abs_top_builddir%,$(abs_top_builddir),g'
    6855
    69 
    70 check_repo_status.sh: check_repo_status.sh.in Makefile
    71   @$(do_subst) < $< > $@
    72   @chmod +x $@
    73   @echo creating $@
    74 
    75 test_repo.sh: test_repo.sh.in Makefile $(toy_project)
    76   @$(do_subst) < $< > $@
    77   @chmod +x $@
    78   @echo creating $@
     56# some tests need the test repo to be checked out
     57stats_test_DEPENDENCIES = $(toy_project) @top_builddir@/lib/libsvndigest.la
    7958
    8059$(toy_project):
     
    8463clean-local:
    8564  rm -rf *.png *.tmp *~ check_repo_status.sh test_repo.sh \
    86   $(targetdir) 
     65  $(targetdir)
  • trunk/test/check_repo_status.sh.in

    r540 r568  
    1 #!%SHELL%
     1#!@SHELL@
     2# @configure_input@
     3
    24# $Id$
    35
  • trunk/test/test_repo.sh.in

    r556 r568  
    1 #!%SHELL%
     1#!@SHELL@
     2# @configure_input@
     3
    24# $Id$
    35
    46# Copyright (C) 2007 Jari Häkkinen, Peter Johansson
     7# Copyright (C) 2008 Peter Johansson
    58#
    69# This file is part of svndigest, http://trac.thep.lu.se/svndigest
     
    2124# 02111-1307, USA.
    2225
    23 svn update %rootdir% > /dev/null;
     26rootdir=@abs_srcdir@/toy_project
     27targetdir=@abs_builddir@/generated_output
     28repodir=@abs_srcdir@/repo/trunk
    2429
    25 if [ ! -d %targetdir% ]; then
    26     mkdir %targetdir%;
     30svn update $rootdir > /dev/null;
     31
     32if [ ! -d $targetdir ]; then
     33    mkdir $targetdir;
    2734fi
    2835
    29 %abs_top_builddir%/bin/svndigest -r %rootdir% -t %targetdir% -f \
     36@abs_top_builddir@/bin/svndigest -r $rootdir -t $targetdir -f \
    3037--ignore-cache --no-report $1;
    3138
    32 %abs_top_builddir%/bin/svndigest -r %rootdir% -t %targetdir% -f --copyright $1;
     39@abs_top_builddir@/bin/svndigest -r $rootdir -t $targetdir -f --copyright $1;
    3340
Note: See TracChangeset for help on using the changeset viewer.