replace $(PWD) with $(CURDIR) in Debian rule files
The only remaining one is the Oozie's rules file.
@@ -36,7 +36,7 @@ override_dh_auto_build:
tar cf - --exclude=debian/\* . | (cd debian/tmp && tar xf -)
override_dh_auto_install:
- sh -x debian/install_oozie.sh --extra-dir=debian/ --build-dir=$(PWD) --server-dir=./debian/oozie --client-dir=./debian/oozie-client --docs-dir=./debian/oozie-client/usr/share/doc/oozie --initd-dir=./debian/oozie/etc/init.d --conf-dir=./debian/oozie/etc/oozie/conf.dist
+ sh -x debian/install_oozie.sh --extra-dir=debian/ --build-dir=$(CURDIR) --server-dir=./debian/oozie --client-dir=./debian/oozie-client --docs-dir=./debian/oozie-client/usr/share/doc/oozie --initd-dir=./debian/oozie/etc/init.d --conf-dir=./debian/oozie/etc/oozie/conf.dist
rm -rf debian/oozie/usr/lib/oozie/embedded-oozie-server/webapp/docs
ln -s -f /usr/share/doc/oozie debian/oozie/usr/lib/oozie/embedded-oozie-server/webapp/docs
