From cd96a993c4c215e4631d56aa9ed935e9b6769bf4 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Fri, 14 Jul 2017 15:40:19 +1000 Subject: 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 --- openpower/scripts/release-notes | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openpower/scripts/release-notes') 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 "$!"; -- cgit v1.2.1