.release.sh 826 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. set -ex
  3. major=`echo $1 | awk -F. '{print $1;}'`
  4. minor=`echo $1 | awk -F. '{print $2;}'`
  5. release=`echo $1 | awk -F. '{print $3;}'`
  6. version=$1
  7. for f in config.hw; do
  8. in=$f.in
  9. out=$f
  10. sed -e "s/@VERSION@/$version/g" \
  11. -e "s/@MAJOR@/$major/g" \
  12. -e "s/@MINOR@/$minor/g" \
  13. -e "s/@RELEASE@/$release/g" \
  14. -e "s,@top_srcdir@,`pwd`,g" < $in > $out
  15. done
  16. echo $1 > .version
  17. # for the documentation:
  18. date +"%e %B %Y" | tr -d '\n' > doc/date.xml
  19. echo -n $1 > doc/version.xml
  20. ALL_LINGUAS=`echo po/*.po | sed 's,po/,,g;s,\.po,,g'`
  21. # Try to create a valid Makefile
  22. tmp=`mktemp /tmp/neon-XXXXXX`
  23. sed -e 's,@SET_MAKE@,,;s,@SHELL@,/bin/sh,' \
  24. -e "s,@top_srcdir@,`pwd`," \
  25. -e "s,@srcdir@,`pwd`," \
  26. -e "s,@ALL_LINGUAS@,${ALL_LINGUAS}," \
  27. < Makefile.in > $tmp
  28. make -f $tmp docs compile-gmo
  29. rm -f $tmp