diff options
author | Sebastian Schmelzer | 2010-09-17 12:31:11 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2010-09-17 12:31:11 +0200 |
commit | e799bece29b804b2ce8db3a339682801acfc3109 (patch) | |
tree | 3659844f7b891a9bfa6e332d4467c1d091d7b01b /tools/installer | |
parent | update version (diff) | |
download | core-e799bece29b804b2ce8db3a339682801acfc3109.tar.gz core-e799bece29b804b2ce8db3a339682801acfc3109.tar.xz core-e799bece29b804b2ce8db3a339682801acfc3109.zip |
fix for slxconfig-demuxer error
Diffstat (limited to 'tools/installer')
-rwxr-xr-x | tools/installer | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tools/installer b/tools/installer index 6989f7e9..9345c31b 100755 --- a/tools/installer +++ b/tools/installer @@ -28,7 +28,7 @@ git_version() GITVERSION=`git describe` GITMODIFIED=`(git status | grep "modified:\|added:\|deleted:" -q) && echo "-M"` echo $GITVERSION$GITMODIFIED - echo $GITVERSION > VERSION + [ -w VERSION -o ! -e VERSION ] && echo $GITVERSION > VERSION else cat VERSION fi @@ -513,6 +513,20 @@ build_rpm_package() rm -rf $SLX_RPMBUILD_PATH } + +cleanup_tmpfiles() +{ + rm -f openslx-*.tar + rm -rf _install +} + +check_permissions() +{ + if [ ! "x$(whoami)" = "xroot" ]; then + echo "You need to be root to run installer.." + exit 1 + fi +} clean() { @@ -596,6 +610,7 @@ cmd_mrproper() print_banner +check_permissions versions_update @@ -629,6 +644,8 @@ case "$1" in ;; esac +cleanup_tmpfiles + #make_install_tarball #make_install_tarball gzip #make_install_tarball bzip2 |