Browse Source

Replace realpath with Python code

- realpath is not installed by default in ubuntu
- the package available in ubuntu 14.04 does not support the used "--relative-to" option
Adrian Dombeck 7 years ago
parent
commit
3a075ba442
1 changed files with 1 additions and 1 deletions
  1. 1 1
      LibOS/shim/test/Makefile

+ 1 - 1
LibOS/shim/test/Makefile

@@ -39,7 +39,7 @@ manifest_rules = \
 
 %manifest: %manifest.template
 	@echo [ $@ ]
-	RELDIR=$(filter-out ./,$(shell realpath --relative-to=$(abspath $(dir $@)) $(PWD))/) && \
+	RELDIR=$(filter-out ./,$(python -c "import os.path; print os.path.relpath($(abspath $(dir $@)) $(PWD))")) && \
 	sed $(manifest_rules) $< > $@
 	(grep -q '^#!' $@ && chmod +x $@) || true