[Pkg-javascript-commits] [node-crc] 01/01: Save/restore upstream files instead of moving location

Jérémy Lal kapouer at moszumanska.debian.org
Sat Oct 11 22:34:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

kapouer pushed a commit to branch master
in repository node-crc.

commit d850ccf4ccfff9f8f1ca50f3ca2d215e74c51e24
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sun Oct 12 00:31:38 2014 +0200

    Save/restore upstream files instead of moving location
---
 debian/clean   | 1 -
 debian/install | 2 +-
 debian/rules   | 8 +++++---
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/debian/clean b/debian/clean
deleted file mode 100644
index ebc0963..0000000
--- a/debian/clean
+++ /dev/null
@@ -1 +0,0 @@
-debian/lib/*
diff --git a/debian/install b/debian/install
index e2c685f..1ca4002 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,2 @@
 package.json usr/lib/nodejs/crc/
-debian/lib usr/lib/nodejs/crc/
+lib usr/lib/nodejs/crc/
diff --git a/debian/rules b/debian/rules
index c3131cb..b206925 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,11 +7,13 @@
 %:
 	dh $@
 
-#override_dh_auto_clean:
-#	rm lib/*js || true
+override_dh_auto_clean:
+	dh_clean
+	if [ -d lib.orig ]; then mv lib.orig/* lib/; rm -rf lib.orig; fi
 
 override_dh_auto_build:
-	coffee --bare --output ./debian/lib --compile ./src/*.coffee
+	if [ ! -d lib.org ]; then mv lib lib.orig; fi
+	coffee --bare --output ./lib --compile ./src/*.coffee
 
 override_dh_auto_test:
 	mocha -C test/*.spec.coffee

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-crc.git



More information about the Pkg-javascript-commits mailing list