poe

Уређивач .po фајлова
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување f338f17826195a0fcabf2a591730e2167472e184
родитељ 56241151bf4c614e256a4212d64b68806c31c050
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Tue, 14 Mar 2023 21:36:17 +0100

Adjust build system similar to sled

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
M_config.h.do | 14++++++++------
Mall.do | 2+-
Dconfig.h.do | 5-----
Mdefault.do | 2+-
Ddefault.h.do | 12------------
измењених датотека: 5, додавања: 10(+), брисања: 25(-)

diff --git a/_config.h.do b/_config.h.do @@ -1,7 +1,9 @@ -hfile=${1#_} -if [ ! -r $hfile ]; then - cat config.def.h >$hfile +if [ -r config.h ]; then + redo-ifchange config.h + cp config.h $3 +else + redo-ifcreate config.h + redo-ifchange config.def.h + cp config.def.h $3 + cp config.def.h config.h fi -cat $hfile >$3 -redo-always -redo-stamp <$3 diff --git a/all.do b/all.do @@ -1 +1 @@ -redo-ifchange version.h poe poe.1.gz +redo-ifchange poe poe.1.gz diff --git a/config.h.do b/config.h.do @@ -1,5 +0,0 @@ -if [ ! -r $1 ]; then - cat config.def.h >$3 -fi -redo-always -redo-stamp <$3 diff --git a/default.do b/default.do @@ -5,6 +5,6 @@ if [ -r $1.in ]; then sed -e "s/%VERSION%/$VERSION/g" \ -e "s/%DATE%/$DATE/g" <$1.in >$3 else - echo "$0: don't know how to build '$1'" >&2 + printf "%s: don't know how to build '%s'\n" "$0" "$1" >&2 exit 99 fi diff --git a/default.h.do b/default.h.do @@ -1,12 +0,0 @@ -if [ -r $1.in ]; then - redo-ifchange $1.in version date - read VERSION <version - read DATE <date - sed -e "s/%VERSION%/$VERSION/g" \ - -e "s/%DATE%/$DATE/g" <$1.in -else - if [ -f $2.def.h ]; then - redo-ifchange $2.def.h - cat $2.def.h > $3 - fi -fi