summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-04-11 19:24:01 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-04-16 10:19:48 +0000
commit83b6276b9f7b868e2e2317059e06fae2c73b02fb (patch)
tree2babc9beac250043d8a3ef3677404b23a62f4330
parentExcluding lost+found directory in container list command. (diff)
downloadcompute-tools-83b6276b9f7b868e2e2317059e06fae2c73b02fb.tar.xz
compute-tools-83b6276b9f7b868e2e2317059e06fae2c73b02fb.zip
Creating container program shortcut symlinks in makefile instead of keeping them in the sources.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rw-r--r--Makefile4
l---------bin/cnt1
l---------bin/cntsh1
3 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0a8831a..8425354 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,9 @@ install: build
fi; \
done
+ ln -sf container $(DESTDIR)/usr/bin/cnt
ln -sf container.1 $(DESTDIR)/usr/share/man/man1/cnt.1
+ ln -sf container-shell $(DESTDIR)/usr/bin/cntsh
ln -sf container-shell.1 $(DESTDIR)/usr/share/man/man1/cntsh.1
mkdir -p $(DESTDIR)/lib/systemd/system
@@ -104,7 +106,9 @@ uninstall:
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/man/man$${SECTION} || true; \
done
+ rm -f $(DESTDIR)/usr/bin/cnt
rm -f $(DESTDIR)/usr/share/man/man1/cnt.1
+ rm -f $(DESTDIR)/usr/bin/cntsh
rm -f $(DESTDIR)/usr/share/man/man1/cntsh.1
rm -rf $(DESTDIR)/usr/share/doc/$(SOFTWARE)
diff --git a/bin/cnt b/bin/cnt
deleted file mode 120000
index 50208cb..0000000
--- a/bin/cnt
+++ /dev/null
@@ -1 +0,0 @@
-container \ No newline at end of file
diff --git a/bin/cntsh b/bin/cntsh
deleted file mode 120000
index 38c4486..0000000
--- a/bin/cntsh
+++ /dev/null
@@ -1 +0,0 @@
-container-shell \ No newline at end of file