cookutils annotate cook.site @ rev 328
cookiso use: yes '' not echo -e
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Mar 16 03:10:54 2012 +0100 (2012-03-16) |
parents | c8f94ae422a8 |
children | 7d37b282b4fb |
rev | line source |
---|---|
pankso@3 | 1 # /etc/slitaz/cook.site: Default options passed to ./configure in SliTaz |
pankso@3 | 2 # |
pankso@3 | 3 # This file is used since we can't export these variables, but configure |
pankso@216 | 4 # handles CONFIG_SITE and will source this file automatically. |
pankso@3 | 5 # |
pankso@3 | 6 # If you want to use your own cook.site, you can use: |
pankso@3 | 7 # export CONFIG_SITE=config.site in compile_rules of a receipt. |
pankso@3 | 8 # |
pankso@3 | 9 |
paul@38 | 10 # Some old configure(s) use "${prefix}" instead of "${datarootdir}". |
pankso@3 | 11 if echo "$localedir" | grep -q \${prefix}; then |
pankso@3 | 12 localedir=$( echo "$localedir" | sed 's/${prefix}/${datarootdir}/') |
pankso@3 | 13 fi |
pankso@3 | 14 if echo "$infodir" | grep -q \${prefix}; then |
pankso@3 | 15 infodir=$( echo "$infodir" | sed 's/${prefix}/${datarootdir}/') |
pankso@3 | 16 fi |
pankso@3 | 17 if echo "$mandir" | grep -q \${prefix}; then |
pankso@3 | 18 mandir=$( echo "$mandir" | sed 's/${prefix}/${datarootdir}/') |
pankso@3 | 19 fi |
pankso@3 | 20 |
pankso@216 | 21 # Default options. |
pankso@3 | 22 prefix=/usr |
pankso@3 | 23 datarootdir=$prefix/share |
pankso@180 | 24 datadir=$datadir |
pankso@3 | 25 localedir=$datarootdir/locale |
pankso@3 | 26 infodir=$datarootdir/info |
pankso@3 | 27 mandir=$datarootdir/man |