Switch from svn to git
[invirt/packages/invirt-web.git] / debian / rules
index b890156..ec1e18d 100755 (executable)
@@ -10,4 +10,7 @@ include /usr/share/cdbs/1/rules/config-package.mk
 DEB_UPDATE_RCD_PARAMS_invirt-web += defaults 91 9
 
 binary-fixup/invirt-web::
 DEB_UPDATE_RCD_PARAMS_invirt-web += defaults 91 9
 
 binary-fixup/invirt-web::
-       svn co $$(invirt-getconf svn.uri)/trunk/packages/invirt-web/code/ $(DEB_DESTDIR)/var/www/invirt-web
+       git clone $$(invirt-getconf git.uri)/invirt/packages/invirt-web $(DEB_DESTDIR)/usr/share/invirt-web/package
+       mkdir -p $(DEB_DESTDIR)/var/www/
+       ln -s /usr/share/invirt-web/package/code $(DEB_DESTDIR)/var/www/invirt-web
+       rm -rf $(DEB_DESTDIR)/var/www/invirt-web-repo