Merge lp:~jontai/openvista-gtm-integration/bug512995 into lp:openvista-gtm-integration

Proposed by Jon Tai
Status: Merged
Merged at revision: not available
Proposed branch: lp:~jontai/openvista-gtm-integration/bug512995
Merge into: lp:openvista-gtm-integration
Diff against target: 21 lines (+7/-2)
1 file modified
scripts/usr/bin/ovimport (+7/-2)
To merge this branch: bzr merge lp:~jontai/openvista-gtm-integration/bug512995
Reviewer Review Type Date Requested Status
jeff.apple Approve
Review via email: mp+18966@code.launchpad.net
To post a comment you must log in.
Revision history for this message
jeff.apple (jeff-apple) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'scripts/usr/bin/ovimport'
--- scripts/usr/bin/ovimport 2010-02-09 23:23:02 +0000
+++ scripts/usr/bin/ovimport 2010-02-10 00:32:14 +0000
@@ -165,10 +165,15 @@
165 if [ -f "$globals" ]; then165 if [ -f "$globals" ]; then
166 # FIXME: handle compressed files166 # FIXME: handle compressed files
167167
168 if awk '{ if (NR == 3) { print $0; exit 0 } }' "$globals" | grep -F '=' > /dev/null; then168 # second line ends with ZWR
169 if awk '{ if (NR == 2) { print $0; exit 0 } }' "$globals" | grep ' ZWR$' > /dev/null; then
169 globals_format=ZWR170 globals_format=ZWR
170 else171 # third line starts with ^
172 elif awk '{ if (NR == 3) { print $0; exit 0 } }' "$globals" | grep '^^' > /dev/null; then
171 globals_format=GO173 globals_format=GO
174 else
175 echo "ovimport: $globals: Unrecognized file format" >&2
176 exit 3
172 fi177 fi
173178
174 if head "$globals" | grep -E $'\r$' > /dev/null; then179 if head "$globals" | grep -E $'\r$' > /dev/null; then

Subscribers

People subscribed via source and target branches