From acad94fb84d96e96aa105c21cc511eb6ce795af6 Mon Sep 17 00:00:00 2001 From: striper Date: Tue, 12 Oct 2010 16:18:11 +0000 Subject: [PATCH] - add install.sh script - install all scripts with proper permissions (755) git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@835 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- data/scripts/Makefile.am | 19 +++++++++++-------- data/scripts/install.sh | 11 +++++++++++ 2 files changed, 22 insertions(+), 8 deletions(-) create mode 100755 data/scripts/install.sh diff --git a/data/scripts/Makefile.am b/data/scripts/Makefile.am index ab8896327..fdd502032 100644 --- a/data/scripts/Makefile.am +++ b/data/scripts/Makefile.am @@ -1,8 +1,11 @@ -# FIXME! -# -#installdir = $(BINDIR) -# -#install_DATA = \ -# backup.sh \ -# restore.sh -# \ No newline at end of file +installdir = $(DESTDIR)$(bindir) + +install_DATA = \ + backup.sh \ + restore.sh \ + install.sh + +install-data-hook: + chmod 0755 $(DESTDIR)$(bindir)/backup.sh + chmod 0755 $(DESTDIR)$(bindir)/restore.sh + chmod 0755 $(DESTDIR)$(bindir)/install.sh \ No newline at end of file diff --git a/data/scripts/install.sh b/data/scripts/install.sh new file mode 100755 index 000000000..277f305bc --- /dev/null +++ b/data/scripts/install.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# 1st arg is dir where unpack, $2 file to be installed + +cd $1 +tar zxvf $2 +./temp_inst/ctrl/preinstall.sh $PWD +cp -a ./temp_inst/inst/* / +./temp_inst/ctrl/postinstall.sh $PWD +rm -rf temp_inst +exit 0 +