[24152] in Source-Commits
/svn/athena r23754 - trunk/debathena/config/afs-config/debian
daemon@ATHENA.MIT.EDU (Evan Broder)
Wed Apr 22 22:55:14 2009
Date: Wed, 22 Apr 2009 22:55:01 -0400
From: Evan Broder <broder@MIT.EDU>
Message-Id: <200904230255.n3N2t19e003869@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: broder
Date: 2009-04-22 22:55:01 -0400 (Wed, 22 Apr 2009)
New Revision: 23754
Modified:
trunk/debathena/config/afs-config/debian/changelog
trunk/debathena/config/afs-config/debian/rules
Log:
In afs-config:
* Add an "update" target to debian/rules to grab updates to the
CellServDB and CellAlias files.
Modified: trunk/debathena/config/afs-config/debian/changelog
===================================================================
--- trunk/debathena/config/afs-config/debian/changelog 2009-04-19 17:17:57 UTC (rev 23753)
+++ trunk/debathena/config/afs-config/debian/changelog 2009-04-23 02:55:01 UTC (rev 23754)
@@ -1,3 +1,10 @@
+debathena-afs-config (1.10) unstable; urgency=low
+
+ * Add an "update" target to debian/rules to grab updates to the
+ CellServDB and CellAlias files.
+
+ -- Evan Broder <broder@mit.edu> Wed, 22 Apr 2009 22:54:37 -0400
+
debathena-afs-config (1.9) unstable; urgency=low
* Only attempt to run update-cellservdb if AFS is currently running. If
Modified: trunk/debathena/config/afs-config/debian/rules
===================================================================
--- trunk/debathena/config/afs-config/debian/rules 2009-04-19 17:17:57 UTC (rev 23753)
+++ trunk/debathena/config/afs-config/debian/rules 2009-04-23 02:55:01 UTC (rev 23754)
@@ -18,10 +18,17 @@
clean:: $(FROM_ATHENA)
common-build-indep:: $(FROM_ATHENA)
+update::
+ UPDATE=1 debian/rules $(FROM_ATHENA)
+
$(patsubst %.debathena,%.athena,$(FROM_ATHENA)) : %.athena: FORCE
wget http://stuff.mit.edu/afs/athena.mit.edu/service/$(patsubst debian/%.athena,%,$@) -O $@.new
- diff -q $@ $@.new # Check that they are the same.
- rm -f $@.new
+ if [ -z $$UPDATE ]; then \
+ diff -q $@ $@.new ; # Check that they are the same. \
+ rm -f $@.new ; \
+ else \
+ mv $@.new $@ ; \
+ fi
$(FROM_ATHENA) : %.debathena: %.athena %.debathena-extra
cat $^ >| $@.tmp