#
# fix-jquery-inclusion
# (c) 2014 Norbert Preining
#
# try to fix jquery.js duplication 
#

pkg="$1"

lua2doxfiles="
        usr/share/doc/texlive-doc/support/lua2dox/docs/html/jquery.js
	usr/share/doc/texlive-doc/support/lua2dox/examples/lua/docs/html/jquery.js
	usr/share/doc/texlive-doc/support/lua2dox/examples/php/docs/html/jquery.js
"

for f in $lua2doxfiles ; do
  ff="debian/$pkg/$f"
  if [ -r $ff ] ; then
    ln -sf /usr/share/javascript/jquery/jquery.js $ff
  fi
done

