diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 22:23:38 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 22:23:38 +0000 |
commit | 316be7696a4d1112328a346e49b50f1cb0c6290b (patch) | |
tree | 4d3fe9fb7e04ab3639a4abcb5566ce1a2e5b52a2 /trunk/lib | |
parent | 56d7b602a4209d74a2a1a7cd2d6ea2920e8c3690 (diff) | |
download | simplepkg-316be7696a4d1112328a346e49b50f1cb0c6290b.tar.gz simplepkg-316be7696a4d1112328a346e49b50f1cb0c6290b.tar.bz2 |
adding user and group support for svn management
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@561 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r-- | trunk/lib/common.sh | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 79a7a0d..21cf9be 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -826,8 +826,8 @@ function gen_meta { SIZE=$( expr `gunzip -l $1 | tail -n 1 | awk '{print $1}'` / 1024 ) USIZE=$( expr `gunzip -l $1 | tail -n 1 | awk '{print $2}'` / 1024 ) REQUIRED=$(tar xzfO $1 install/slack-required 2>/dev/null | grep -v -e "^#" | xargs -r -iZ echo -n "Z," | sed -e "s/,$//") - CONFLICTS=$(tar xzfO $1 install/slack-conflicts 2>/dev/null | xargs -r -iZ echo -n "Z," | sed -e "s/,$//") - SUGGESTS=$(tar xzfO $1 install/slack-suggests 2>/dev/null | xargs -r ) + CONFLICTS=$(tar xzfO $1 install/slack-conflicts 2>/dev/null | grep -v -e "^#" | xargs -r -iZ echo -n "Z," | sed -e "s/,$//") + SUGGESTS=$(tar xzfO $1 install/slack-suggests 2>/dev/null | grep -v -e "^#" | xargs -r ) METAFILE=${NAME%tgz}meta echo "PACKAGE NAME: $NAME" > $LOCATION/$METAFILE @@ -1092,3 +1092,21 @@ function su_svn { fi } + +function chown_svn { + + # set svn folder ownership + if [ ! -z "$SVN_USER" ] && [ ! -z "$1" ]; then + chown -R $SVN_USER $1 + fi + +} + +function chgrp_svn { + + # set svn folder group + if [ ! -z "$SVN_GROUP" ] && [ ! -z "$1" ]; then + chgrp -R $SVN_GROUP $1 + fi + +} |