Code

rules: Do not use $(CURDIR).
authorSebastian Harl <sh@tokkee.org>
Wed, 2 Feb 2011 12:32:10 +0000 (13:32 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 Feb 2011 12:32:10 +0000 (13:32 +0100)
This is not necessary in all cases.

debian/rules

index a7b64f63ff02f6d106c95adcf58ef358f252cf5b..63c17c3f773c663c54af3056b1a126246dc8ff1e 100755 (executable)
@@ -28,18 +28,18 @@ install: build
        dh_prep
        dh_installdirs
 
-       cp -a system $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/
+       cp -a system debian/libkohana2-php/usr/share/php/kohana2/
 
        # remove DejaVu-Fonts and create symlink
-       rm -rf $(CURDIR)/debian/libkohana2-php/usr/share/php/kohana2/system/fonts
+       rm -rf debian/libkohana2-php/usr/share/php/kohana2/system/fonts
 
-       cp -a modules $(CURDIR)/debian/libkohana2-modules-php/usr/share/php/kohana2/
-       rm -f $(CURDIR)/debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/js/jquery.js
+       cp -a modules debian/libkohana2-modules-php/usr/share/php/kohana2/
+       rm -f debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/js/jquery.js
        ln -s /usr/share/javascript/jquery/jquery.js \
-               $(CURDIR)/debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/js/jquery.js
+               debian/libkohana2-modules-php/usr/share/php/kohana2/modules/kodoc/views/kodoc/media/js/jquery.js
 
        # fix permissions
-       for file in `find $(CURDIR)/debian/libkohana2-* -name '*.php'`; do \
+       for file in `find debian/libkohana2-* -name '*.php'`; do \
                chmod 644 $$file; \
        done