diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-12-04 13:44:08 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-12-04 13:44:08 +0000 |
commit | b7b298137f14e30fce0936aa9d99fcb21c9b401b (patch) | |
tree | d114a6060b2de81fac20d9d77f660b12a9c895b5 /trunk/lib | |
parent | b46c609c3f8ceab0f7ba8ff4539f01b628172f8b (diff) | |
download | simplepkg-b7b298137f14e30fce0936aa9d99fcb21c9b401b.tar.gz simplepkg-b7b298137f14e30fce0936aa9d99fcb21c9b401b.tar.bz2 |
small changes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@469 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r-- | trunk/lib/common.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 3a437c8..ec3e6f0 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -27,7 +27,7 @@ SIMPLARET="simplaret" function package_name { - echo "`basename $1 .tgz`" | sed -e 's/-[^-]*-[^-]*-[^-]*$//' + basename $1 .tgz | sed -e 's/-[^-]*-[^-]*-[^-]*$//' } @@ -49,7 +49,7 @@ function package_arch { # get ARCH from a package name local file pack arch - echo `basename $1` | sed -e 's/.*\-\(.*\)\-.*.tgz$/\1/' -e 's/_slamd64$//g' -e 's/_sflack$//g' + basename $1 | sed -e 's/.*\-\(.*\)\-.*.tgz$/\1/' -e 's/_slamd64$//g' -e 's/_sflack$//g' } @@ -57,7 +57,7 @@ function package_build { # get BUILD from a package name local file pack build - echo `basename $1` | sed -e 's/.*\-.*\-\(.*\).tgz$/\1/' + basename $1 | sed -e 's/.*\-.*\-\(.*\).tgz$/\1/' } |