From 1f3f2b88bd44bc2a14220c94b6be44223ed6cdf7 Mon Sep 17 00:00:00 2001 From: Gregor Pintar Date: Wed, 29 Jan 2014 21:09:56 +0100 Subject: [PATCH] install.sh and uninstall.sh --- clean.sh | 6 +++--- install.sh | 15 ++++++++++++--- uninstall.sh | 5 +++++ 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100755 uninstall.sh diff --git a/clean.sh b/clean.sh index 210a4a9..694fb70 100755 --- a/clean.sh +++ b/clean.sh @@ -6,6 +6,6 @@ find . -name '*.so' -type f -exec rm -f {} \; find . -name '*.dll' -type f -exec rm -f {} \; # correct permissions -find . -type f -exec chmod 0644 {} \; -find . -type d -exec chmod 0755 {} \; -find . -name '*.sh' -exec chmod +x {} \; +find . -type f -exec chmod 644 {} \; +find . -type d -exec chmod 755 {} \; +find . -name '*.sh' -exec chmod 755 {} \; diff --git a/install.sh b/install.sh index 8e6a5ae..ae22bdb 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,14 @@ #!/bin/sh -cp -r include/kripto/ /usr/include/kripto/ -cp lib/*.a /usr/lib -cp lib/*.so* /usr/lib +cp -r include/kripto /usr/include/kripto +cp lib/libkripto.a /usr/lib +cp lib/libkripto.so /usr/lib + +chown -R root:root /usr/include/kripto +chown root:root /usr/lib/libkripto.a +chown root:root /usr/lib/libkripto.so + +chmod -R 644 /usr/include/kripto +find /usr/include/kripto -type d -exec chmod 0755 {} \; +chmod 644 /usr/lib/libkripto.a +chmod 755 /usr/lib/libkripto.so diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..42bf536 --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +rm -r /usr/include/kripto +rm /usr/lib/libkripto.a +rm /usr/lib/libkripto.so -- 2.11.4.GIT