[Dh-make-php-commits] r179 - trunk

Uwe Steinmann steinm at costa.debian.org
Tue May 30 09:12:19 UTC 2006


Author: steinm
Date: 2006-05-30 09:12:19 +0000 (Tue, 30 May 2006)
New Revision: 179

Modified:
   trunk/pear.mk
Log:
- check for docs directory before moving it into new place


Modified: trunk/pear.mk
===================================================================
--- trunk/pear.mk	2006-05-30 08:39:02 UTC (rev 178)
+++ trunk/pear.mk	2006-05-30 09:12:19 UTC (rev 179)
@@ -72,9 +72,11 @@
 		install --nodeps -R $(DEB_DESTDIR) $(PEAR_SOURCE_DIR)/package.xml
 
 	# move documentation to correct location
-	mkdir -p $(DEB_DESTDIR)usr/share/doc
-	mv -i $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR) $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)
-	ln -s ../../doc/$(DEB_PACKAGES) $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR)
+	mkdir -p $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)
+	if [ -d $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR) ] ; then \
+		mv -i $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR)/* $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR); \
+		ln -s ../../doc/$(DEB_PACKAGES) $(DEB_DESTDIR)$(PEAR_OLD_DOC_DIR); \
+	fi ;
 
 	# create upstream changelog
 	/usr/bin/xsltproc --nonet --novalid /usr/share/dh-make-php/xslt/changelog.xsl package.xml | gzip -9 > $(DEB_DESTDIR)$(PEAR_NEW_DOC_DIR)/changelog.gz




More information about the Dh-make-php-commits mailing list