Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Unified Diff: debian.chrome/scripts/control-create

Issue 646032: Rename config to match naming convention. (Closed)
Patch Set: Send mail Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debian.chrome/scripts/abi-check ('k') | debian.chrome/scripts/link-headers » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debian.chrome/scripts/control-create
diff --git a/debian.chrome/scripts/control-create b/debian.chrome/scripts/control-create
new file mode 100755
index 0000000000000000000000000000000000000000..f8ee9a2408eaf2209429bfffe99e2454c4a93b39
--- /dev/null
+++ b/debian.chrome/scripts/control-create
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+. debian/debian.env
+
+vars=$1
+
+. $vars
+
+if [ "$is_sub" = "" ]; then
+ flavour=$(basename $vars | sed 's/.*\.//')
+ stub=${DEBIAN}/control.d/flavour-control.stub
+else
+ flavour=$(basename $vars .vars)
+ stub=${DEBIAN}/sub-flavours/control.stub
+fi
+
+cat $stub | grep -v '^#' | sed \
+ -e "s#FLAVOUR#$flavour#g" \
+ -e "s#DESC#$desc#g" \
+ -e "s#ARCH#$arch#g" \
+ -e "s#SUPPORTED#$supported#g" \
+ -e "s#TARGET#$target#g" \
+ -e "s#BOOTLOADER#$bootloader#g" \
+ -e "s#=PROVIDES=#$provides#g" \
+ -e "s#=CONFLICTS=#$conflicts#g"
« no previous file with comments | « debian.chrome/scripts/abi-check ('k') | debian.chrome/scripts/link-headers » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698