source: subversion/applications/share/map-icons/create_makefile.sh @ 3711

Last change on this file since 3711 was 3674, checked in by joerg, 13 years ago

include svg files into dist.tar.gz file

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