diff --git a/checkinstall.sh b/checkinstall.sh new file mode 100755 index 0000000..d00f53e --- /dev/null +++ b/checkinstall.sh @@ -0,0 +1,11 @@ +if [ "$1" = "-h" -o "$1" = "--help" ]; then + echo "All parameters will be passed to checkinstall, call as 'root' - e.g.:" + echo " ./checkinstall.sh --pkgname=cross-mingw-mrw-c++ --pkgversion=3.2.4 -y" + exit 0 +fi +TMP=/tmp/mrw-c++-checkinstall +rm -rf $TMP +DESTDIR=$TMP make install +cd $TMP +checkinstall $* cp -r * / +rm -rf $TMP diff --git a/mrw/makefile.am b/mrw/makefile.am index 6caa1f4..b9bb460 100644 --- a/mrw/makefile.am +++ b/mrw/makefile.am @@ -386,7 +386,8 @@ $(html_DATA): doxyfile *.[ch]pp $(deps) style.css head.html foot.html test -d $(top_builddir)/doc/html || mkdir -p $(top_builddir)/doc/html @test -f $(top_builddir)/doc/html/hintergrund.png || \ cp $(srcdir)/hintergrund.png \ - $(top_builddir)/doc/html + $(top_builddir)/doc/html && \ + chmod u+w $(top_builddir)/doc/html/hintergrund.png doxygen doxyfile || \ ( echo "**** ERROR in Doxygen ****" && cat doxygen.errors && false ) if PEDANTIC