summaryrefslogtreecommitdiffstats
path: root/openpower/scripts/release-notes
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-07-14 15:40:19 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-07-14 15:56:31 +1000
commitcd96a993c4c215e4631d56aa9ed935e9b6769bf4 (patch)
tree58cc57a2bea97dabfe604e4a50097b0713c89207 /openpower/scripts/release-notes
parent88c7e3589d293cdb2b6c773a7c3bd501e090fd14 (diff)
downloadblackbird-op-build-cd96a993c4c215e4631d56aa9ed935e9b6769bf4.tar.gz
blackbird-op-build-cd96a993c4c215e4631d56aa9ed935e9b6769bf4.zip
scripts/release-notes: quoting is fun
On a similar level to .,' - table name quoting is odd and on the surface makes no sense. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'openpower/scripts/release-notes')
-rwxr-xr-xopenpower/scripts/release-notes7
1 files changed, 5 insertions, 2 deletions
diff --git a/openpower/scripts/release-notes b/openpower/scripts/release-notes
index 36f4eab3..d0646d3d 100755
--- a/openpower/scripts/release-notes
+++ b/openpower/scripts/release-notes
@@ -130,14 +130,17 @@ foreach my $p (@begin_platforms) {
# Work-around bug in op-build v1.17, fixed 2 commits later
system('sed -e \'s/,""\([^",]\)/,"\1/; s/\([^,]\)"",/\1",/; s/machine-xml-"\(.*\)".tar/machine-xml-\1.tar/\' -i '. $begin_worktree .'/output/legal-info/manifest.csv');
# Forgive me for this....
- system("sqlite3 release-notes.sqlite \".mode csv\" \".import $begin_worktree/output/legal-info/manifest.csv 'begin_".$p."_manifest'\"");
+ system("sqlite3 release-notes.sqlite \".mode csv\" \".import $begin_worktree/output/legal-info/manifest.csv i\"");
+ $dbh->do("ALTER TABLE i RENAME to 'begin_".$p."_manifest'") or die $!;
}
foreach my $p (@end_platforms) {
print "# END PLATFORMS LEGAL-INFO $p\n";
system("bash -c '(cd $end_worktree && . op-build-env && op-build ".$p."_defconfig && op-build legal-info)'");
# Forgive me for this....
- system("sqlite3 release-notes.sqlite \".mode csv\" \".import $end_worktree/output/legal-info/manifest.csv 'end_".$p."_manifest'\"");
+ print "# loading manifest\n";
+ system("sqlite3 release-notes.sqlite \".mode csv\" \".import $end_worktree/output/legal-info/manifest.csv i\"");
+ $dbh->do("ALTER TABLE i RENAME to 'end_".$p."_manifest'") or die $!;
}
$dbh->do(<<'SQL') or die "$!";
OpenPOWER on IntegriCloud