gsrc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gsrc-commit] /srv/bzr/gsrc/trunk r2394: use conditional variable assign


From: Brandon Invergo
Subject: [Gsrc-commit] /srv/bzr/gsrc/trunk r2394: use conditional variable assignment
Date: Wed, 22 May 2013 22:53:11 +0200
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 2394
committer: Brandon Invergo <address@hidden>
branch nick: trunk
timestamp: Wed 2013-05-22 22:53:11 +0200
message:
  use conditional variable assignment
modified:
  ChangeLog
  gar.conf.mk
=== modified file 'ChangeLog'
--- a/ChangeLog 2013-05-22 20:35:06 +0000
+++ b/ChangeLog 2013-05-22 20:53:11 +0000
@@ -1,5 +1,8 @@
 2013-05-22  Brandon Invergo  <address@hidden>
 
+       * gar.conf.mk: Use conditional variable assignment for all
+       variables
+
        * gar.mk (install-p): Print a message when a package is not
        installed
        (reinstall-p): Print a message when a package is not stowed

=== modified file 'gar.conf.mk'
--- a/gar.conf.mk       2013-05-01 21:08:17 +0000
+++ b/gar.conf.mk       2013-05-22 20:53:11 +0000
@@ -1,7 +1,7 @@
 # Configuration variables for GARStow.
 # Your local cache of downloaded source files and binary packages.
-GARCHIVEDIR = $(GARDIR)/cache/garstow/archives
-GARBALLDIR = $(GARDIR)/cache/garstow/garballs
+GARCHIVEDIR ?= $(GARDIR)/cache/garstow/archives
+GARBALLDIR ?= $(GARDIR)/cache/garstow/garballs
 
 # Flags to pass to make to build in parallel.
 MAKE_ARGS_PARALLEL ?= -j1
@@ -9,14 +9,14 @@
 # List of packages that should not be installed automatically as dependencies
 # by GARStow -- for example, if they're provided by an underlying operating
 # system.
-IGNORE_DEPS = libc libiconv binutils
+IGNORE_DEPS ?= libc libiconv binutils
 
 # If you want GSRC messages to be printed in color, set USE_COLOR to y. This 
may
 # help in distinguishing GSRC output from that of the packages you build.
 # The default colors are bold white for messages, red for errors, and green 
for 
 # success. If you don't want colors, you can insert symbols to designate GSRC 
 # output.
-USE_COLOR = n
+USE_COLOR ?= n
 ifeq ($(USE_COLOR),y)
        OFF = "\\033[00m"
        MSG = "\\033[01\;37m"
@@ -25,9 +25,9 @@
        OK = "\\033[00\;32m"
 else
        OFF =
-       MSG ===> 
+       MSG = ==> 
        MSG2 = 
-       ERR =*** 
+       ERR = *** 
        OK =
 endif
 
@@ -36,7 +36,7 @@
 # you won't be able to monitor the build process. 
 # If you change REDIRECT_OUTPUT to anything other than n, the default is to
 # suppress normal output and only print errors.
-REDIRECT_OUTPUT = n
+REDIRECT_OUTPUT ?= n
 ifeq ($(REDIRECT_OUTPUT),n)
        OUTPUT =
 else


reply via email to

[Prev in Thread] Current Thread [Next in Thread]