Skip to content

Commit 22712c7

Browse files
committed
(misc) Fix gnu compatability for sed
Signed-off-by: R.I.Pienaar <[email protected]>
1 parent a6dbb10 commit 22712c7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ Gemfile.lock
3535

3636
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
3737
.rvmrc
38+
.ruby-version

moduleroot/Rakefile.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ task :prep_version do
3535
abort("Please specify VERSION") unless ENV["VERSION"]
3636

3737
Rake::FileList["**/*.ddl"].each do |file|
38-
sh 'sed -i "" -re \'s/([\t ]+:version[\t ]+=>[\t ]+").+/\\1%s",/\' %s' % [ENV["VERSION"], file]
38+
sh 'sed -i"" -re \'s/([\t ]+:version[\t ]+=>[\t ]+").+/\\1%s",/\' %s' % [ENV["VERSION"], file]
3939
end
4040

4141
Rake::FileList["**/*.json"].each do |file|
42-
sh 'sed -i "" -re \'s/("version": ").+/\\1%s",/\' %s' % [ENV["VERSION"], file]
42+
sh 'sed -i"" -re \'s/("version": ").+/\\1%s",/\' %s' % [ENV["VERSION"], file]
4343
end
4444

4545
changelog = File.read("CHANGELOG.md")

0 commit comments

Comments
 (0)