CVSROOT: /cvsroot/www-bg
Module name: www-bg
Changes by: Yavor Doganov <yavor> 09/11/11 16:15:00
Modified files:
. : GNUmakefile
Log message:
СинÑ
ÑонизиÑане Ñ GNUnited Nations 0.4.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/www-bg/GNUmakefile?cvsroot=www-bg&r1=1.4&r2=1.5
Patches:
Index: GNUmakefile
===================================================================
RCS file: /cvsroot/www-bg/www-bg/GNUmakefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- GNUmakefile 2 Aug 2009 07:53:14 -0000 1.4
+++ GNUmakefile 11 Nov 2009 16:15:00 -0000 1.5
@@ -28,6 +28,7 @@
# CVS
# Subversion (if the www-LANG repository is SVN)
# GNU Bzr (if the www-LANG repository is Bzr)
+# Mercurial (if the www-LANG repository is Hg)
# GNU Arch (if the www-LANG repository is Arch)
SHELL = /bin/bash
@@ -35,8 +36,8 @@
# Set this variable to your language code.
TEAM := bg
-# The relative path to the working copy of the master "www"
-# repository; must end with a trailing slash.
+# The relative or absolute path to the working copy of the master
+# "www" repository; must end with a trailing slash.
wwwdir := ../www/
# Adjust these variables if you don't have the programs in your PATH.
@@ -45,6 +46,7 @@
CVS := cvs
SVN := svn
BZR := bzr
+HG := hg
# Baz can be used alternatively; its commands are compatible.
TLA := tla
@@ -53,7 +55,8 @@
# Determine the VCS.
REPO := $(shell (test -d CVS && echo CVS) || (test -d .svn && echo SVN) \
- || (test -d .bzr && echo Bzr) || (test -d \{arch\} && echo Arch))
+ || (test -d .bzr && echo Bzr) || (test -d .hg && echo Hg) \
+ || (test -d \{arch\} && echo Arch))
ifndef REPO
$(error Unsupported Version Control System)
endif
@@ -65,6 +68,7 @@
MSGMERGEVERBOSE := --verbose
ECHO := echo $$file: ;
CVSQUIET :=
+# Also applicable for Hg.
BZRQUIET := --verbose
else
CVSQUIET := -q
@@ -96,6 +100,10 @@
$(svn-update)
else ifeq ($(REPO),Bzr)
$(BZR) pull $(BZRQUIET)
+else ifeq ($(REPO),Hg)
+# The "fetch" extension is not guaranteed to be available, and/or
+# enabled in user's ~/.hgrc.
+ $(HG) pull --update $(BZRQUIET)
else ifeq ($(REPO),Arch)
$(TLA) update
endif
@@ -124,6 +132,8 @@
else \
true; \
fi
+else ifeq ($(REPO),Hg)
+ $(HG) commit $(BZRQUIET) -m $(log) && $(HG) push $(BZRQUIET)
else ifeq ($(REPO),Arch)
# Arch is so dumb that it will do a bogus commit (adding another
# absolutely useless revision) even if there are no changes.
_______________________________________________
Dict-notifications mailing list
[email protected]
http://zver.fsa-bg.org/cgi-bin/mailman/listinfo/dict-notifications