summaryrefslogtreecommitdiff
path: root/.release.sh
diff options
context:
space:
mode:
Diffstat (limited to '.release.sh')
-rwxr-xr-x.release.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/.release.sh b/.release.sh
index 549b76f..7e79f23 100755
--- a/.release.sh
+++ b/.release.sh
@@ -13,7 +13,8 @@ out=$f
sed -e "s/@VERSION@/$version/g" \
-e "s/@MAJOR@/$major/g" \
-e "s/@MINOR@/$minor/g" \
- -e "s/@RELEASE@/$release/g" < $in > $out
+ -e "s/@RELEASE@/$release/g" \
+ -e "s,@top_srcdir@,`pwd`,g" < $in > $out
done
echo $1 > .version
@@ -22,8 +23,13 @@ echo $1 > .version
date +"%e %B %Y" | tr -d '\n' > doc/date.xml
echo -n $1 > doc/version.xml
+ALL_LINGUAS=`echo po/*.po | sed 's,po/,,g;s,\.po,,g'`
+
# Try to create a valid Makefile
tmp=`mktemp /tmp/neon-XXXXXX`
-sed -e "s/@SET_MAKE@//g" -e "s|@SHELL@|/bin/sh|g" < Makefile.in > $tmp
-make -f $tmp docs
+sed -e 's,@SET_MAKE@,,;s,@SHELL@,/bin/sh,' \
+ -e "s,@top_srcdir@,`pwd`," \
+ -e "s,@ALL_LINGUAS@,${ALL_LINGUAS}," \
+ < Makefile.in > $tmp
+make -f $tmp docs compile-gmo
rm -f $tmp