Rename code/ to /var/www/invirt-web/ in binary-fixup
authorAndrew M. Farrell <afarrell@mit.edu>
Wed, 25 Aug 2010 05:07:31 +0000 (01:07 -0400)
committerGreg Brockman <gdb@mit.edu>
Thu, 26 Aug 2010 06:36:08 +0000 (02:36 -0400)
Remove git checkout steps. Do not symlink /var/www/invirt-web/ to
code/ .

debian/changelog
debian/invirt-web.postinst
debian/rules

index 157e76a..c8efb75 100644 (file)
@@ -1,3 +1,9 @@
+invirt-web (0.1.8) lucid; urgency=low
+
+  * Rename code/ to /var/www/invirt-web/ in binary-fixup
+
+ -- Andrew M. Farrell <afarrell@mit.edu>  Thu, 26 Aug 2010 01:48:04 -0400
+
 invirt-web (0.1.7) unstable; urgency=low
 
   * Checkout the current HEAD when building
index 3703667..14f8469 100755 (executable)
@@ -20,7 +20,7 @@ set -e
 
 case "$1" in
     configure)
-       cd /usr/share/invirt-web/package/code
+       cd /var/www/invirt-web
        make all
 
        a2enmod rewrite
index bad8d04..473ad29 100755 (executable)
@@ -11,11 +11,9 @@ include /usr/share/cdbs/1/rules/config-package.mk
 
 DEB_UPDATE_RCD_PARAMS_invirt-web += defaults 91 9
 
-GIT_HEAD=$(shell git rev-parse HEAD)
-
 binary-fixup/invirt-web::
-       git clone $$(invirt-getconf git.uri)/invirt/packages/invirt-web $(DEB_DESTDIR)/usr/share/invirt-web/package
-       cd $(DEB_DESTDIR)/usr/share/invirt-web/package && git checkout $(GIT_HEAD)
        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
+       mv code/ $(DEB_DESTDIR)/var/www/invirt-web/
+
+clean/invirt-web::
+       mv $(DEB_DESTDIR)/var/www/invirt-web/ code/