source: subversion/map-icons/create_makefile.sh @ 2148

Last change on this file since 2148 was 2042, checked in by joerg, 13 years ago

move installed map-icons to subfolder

  • Property svn:executable set to *
File size: 1023 bytes
Line 
1#!/bin/bash
2# Create example for Makefile.am
3makefile="Makefile.am"
4
5echo "" >$makefile
6for theme in square.big square.small classic nickw ; do 
7    find $theme -type d | grep -v /.svn | while read dir; do
8        # if no files in dir
9        echo $dir/*.png | grep -q -e '\*' && continue
10
11        name=${dir//-/_}
12        name=${name//\//_}
13        echo "" >>$makefile
14        echo $name'_DATA = '$dir'/*.png' >>$makefile
15        echo $name'dir = $(datadir)/map-icons/'$dir >>$makefile
16    done
17    echo  >>$makefile
18done
19
20echo  >>$makefile
21echo  >>$makefile
22echo "EXTRA_DIST= \\" >>$makefile
23for theme in square.big square.small classic nickw ; do 
24    find $theme -type d | grep -v /.svn | while read dir; do
25        # if no files in dir
26        echo $dir/*.png | grep -q -e '\*' && continue
27
28        name=${dir//-/_}
29        name=${name//\//_}
30        echo '  $('$name'_DATA)' "\\" >>$makefile
31    done
32done
33echo '  CMakeLists.txt'  "\\">>$makefile
34echo '  index.html'  "\\">>$makefile
35echo '  overview.de.html'  "\\">>$makefile
36echo '  overview.html'  "\\">>$makefile
37echo '  create_makefile.sh' >>$makefile
Note: See TracBrowser for help on using the repository browser.