Skip to content

Commit

Permalink
Makefile: Apparently sed -i is broken in make (?)
Browse files Browse the repository at this point in the history
The original command looked good but it did not work, neither in OBS
nor locally. So, let's use a more complicated version.
  • Loading branch information
Stefan Knorr committed May 20, 2020
1 parent 5d4c7ad commit 96f9398
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ install: | $(INST_DIRECTORIES)
tar c --mode=u+w,go+r-w,a-s -C $(DIR2013_SUSE) . | (cd $(SUSESTYLEDIR2013); tar xp)
tar c --mode=u+w,go+r-w,a-s -C $(DEV_DIR2013_SUSE) . | (cd $(SUSESTYLEDIR2013-NS); tar xp)
for SDIR in $(INST_STYLEDIRS); do \
sed -i "s/@@#version@@/$(VERSION)/" $$SDIR/VERSION.xsl; \
sed "s/@@#version@@/$(VERSION)/" $$SDIR/VERSION.xsl > $$SDIR/VERSION.xsl.0; \
mv $$SDIR/VERSION.xsl.0 $$SDIR/VERSION.xsl; \
cp $$SDIR/VERSION.xsl $$SDIR/VERSION; \
done

#-----------------------------
Expand Down

0 comments on commit 96f9398

Please sign in to comment.