1
Subject: re-write the wrapper commands from original source
2
This patch just rewrites the wrapper commands that are provided
3
in the zip file with one more tailored for installation.
1
Description: re-write the wrapper commands from original source
2
This patch just rewrites the wrapper commands that are provided
3
in the zip file with one more tailored for installation.
5
5
To regenerate this patch:
6
files=$(for f in bin/*; do
7
case "${f##*/}" in (*.cmd|service|elb-cmd) continue;; esac
9
# the only program that has a different argument to 'elb-cmd'
10
# than its filename is 'elb-version'. That has to be shortened to
12
quilt delete replace-commands.patch
13
rm debian/patches/replace-commands.patch
14
quilt new replace-commands.patch
17
[ "${f}" = "bin/elb-version" ] && cmd="version" || cmd="${f#*/}"
18
cat debian/wrapper-header > "${f}" && \
19
printf 'exec "$service" %s "$@"\n' "$cmd" >> "${f}"
23
To verify that each command called 'elb-cmd' with its command name, without
24
this patch applied, you can do something like:
26
cmd=$(awk '$1 ~ /elb-cmd$/ { print $2 }' $f);
27
[ "${f#*/}" != "$cmd" ] && echo -n "DIFFERENT: "
6
files=$(for f in bin/*; do
7
case "${f##*/}" in (*.cmd|service|elb-cmd) continue;; esac
9
# the only program that has a different argument to 'elb-cmd'
10
# than its filename is 'elb-version'. That has to be shortened to
12
patch=debian/patches/replace-commands.patch
13
quilt header ${patch##*/} > header.tmp
14
quilt delete ${patch##*/}
16
quilt new ${patch##*/}
19
[ "${f}" = "bin/elb-version" ] && cmd="version" || cmd="${f#*/}"
20
cat debian/wrapper-header > "${f}" && \
21
printf 'exec "$service" %s "$@"\n' "$cmd" >> "${f}"
25
quilt header ${patch##*/} -r < header.tmp
31
27
Origin: Scott Moser <smoser@ubuntu.com>
32
28
Last-Update: 2011-12-13
33
30
--- a/bin/elb-apply-security-groups-to-lb
34
31
+++ b/bin/elb-apply-security-groups-to-lb