Browse Source

Use different separators for sed

master
Juan Placencia 4 years ago
parent
commit
157783afe1
1 changed files with 12 additions and 12 deletions
  1. +12
    -12
      Makefile

+ 12
- 12
Makefile View File

@ -28,18 +28,18 @@ default: build
# Build process # Build process
build: clean logo.svg build: clean logo.svg
@cp logo.svg temp.svg @cp logo.svg temp.svg
@sed -i 's/fill: black/:fill1:/' temp.svg
@sed -i 's/fill: white/:fill2:/' temp.svg
@sed -i 's/fill: gray/:fill3:/' temp.svg
@sed -i 's/:fill1:/fill: $(dark_color)/' temp.svg
@sed -i 's/:fill2:/fill: $(light_color)/' temp.svg
@sed -i 's/:fill3:/fill: $(middle_color)/' temp.svg
@sed -i 's/dark.png/:image1:/' temp.svg
@sed -i 's/light.png/:image2:/' temp.svg
@sed -i 's/middle.png/:image3:/' temp.svg
@sed -i 's/:image1:/$(dark)/' temp.svg
@sed -i 's/:image2:/$(light)/' temp.svg
@sed -i 's/:image3:/$(middle)/' temp.svg
@sed -i 's|fill: black|:fill1:|' temp.svg
@sed -i 's|fill: white|:fill2:|' temp.svg
@sed -i 's|fill: gray|:fill3:|' temp.svg
@sed -i 's|:fill1:|fill: $(dark_color)|' temp.svg
@sed -i 's|:fill2:|fill: $(light_color)|' temp.svg
@sed -i 's|:fill3:|fill: $(middle_color)|' temp.svg
@sed -i 's|dark.png|:image1:|' temp.svg
@sed -i 's|light.png|:image2:|' temp.svg
@sed -i 's|middle.png|:image3:|' temp.svg
@sed -i 's|:image1:|$(dark)|' temp.svg
@sed -i 's|:image2:|$(light)|' temp.svg
@sed -i 's|:image3:|$(middle)|' temp.svg
convert -background none -size $(size)x$(size) temp.svg logo.png convert -background none -size $(size)x$(size) temp.svg logo.png
@rm temp.svg @rm temp.svg
clean: clean:

Loading…
Cancel
Save