aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-05-05 16:48:00 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-05-05 16:48:00 +0000
commit621ec4cbafef57b22619ed2a5dc78bb6bafd6be8 (patch)
treeb01ac4b6e27325880acca9642d2636b3fb294dcd
parentdf8cbfd5b9828274453c0cd1f171b2aae7af7dfe (diff)
downloadsimplepkg-621ec4cbafef57b22619ed2a5dc78bb6bafd6be8.tar.gz
simplepkg-621ec4cbafef57b22619ed2a5dc78bb6bafd6be8.tar.bz2
common.sh: fixes on metafiles generation
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@370 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--trunk/doc/CHANGELOG2
-rw-r--r--trunk/lib/common.sh10
-rwxr-xr-xtrunk/simplepkg.SlackBuild2
3 files changed, 7 insertions, 7 deletions
diff --git a/trunk/doc/CHANGELOG b/trunk/doc/CHANGELOG
index ee0495c..67900d1 100644
--- a/trunk/doc/CHANGELOG
+++ b/trunk/doc/CHANGELOG
@@ -6,6 +6,8 @@ simplepkg changelog
- simplaret:
- small fix
+ - common.sh:
+ - fixes on metafiles generation
0.5pre21
========
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index aa6a8d7..2be3ec6 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -574,9 +574,7 @@ function svn_add_meta {
function gen_filelist {
# generate FILELIST.TXT
- # usage: gen_filelist <folder>
-
- local cwd
+ # usage: gen_filelist
for file in `find | grep -e ".tgz$"`; do ls -l $file; done > FILELIST.TXT
echo "Created new FILELIST.TXT"
@@ -593,7 +591,7 @@ function gen_patches_filelist {
cwd="`pwd`"
cd $1
for file in `find | grep -e ".tgz$"`; do ls -l $file; done > FILE_LIST
- cd $pwd
+ cd $cwd
if [ "$1" == "." ]; then
echo "Created new FILE_LIST"
@@ -618,7 +616,7 @@ function gen_packages_txt {
echo '' > PACKAGES.TXT
find . -type f -name '*.meta' -exec cat {} \; >> PACKAGES.TXT
cat PACKAGES.TXT | gzip -9 -c - > PACKAGES.TXT.gz
- cd $pwd
+ cd $cwd
if [ "$1" == "." ]; then
echo "Created new PACKAGES.TXT and PACKAGES.TXT.gz"
@@ -643,7 +641,7 @@ function gen_md5_checksums {
echo '' > CHECKSUMS.md5
find . -type f -name '*.tgz' -exec md5sum {} \; >> CHECKSUMS.md5
cat CHECKSUMS.md5 | gzip -9 -c - > CHECKSUMS.md5.gz
- cd $pwd
+ cd $cwd
if [ "$1" == "." ]; then
echo "Created new CHECKSUMS.md5 and CHECKSUMS.md5.gz"
diff --git a/trunk/simplepkg.SlackBuild b/trunk/simplepkg.SlackBuild
index 4b088d4..a9e90e8 100755
--- a/trunk/simplepkg.SlackBuild
+++ b/trunk/simplepkg.SlackBuild
@@ -6,7 +6,7 @@
PACKAGE="simplepkg"
PACK_DIR="package-$PACKAGE"
BUILD=${BUILD:=1rha}
-VERSION="0.5pre21"
+VERSION="0.5pre22"
ARCH="noarch"
LIBEXEC="/usr/libexec/$PACKAGE"
BINDIR="/usr/bin"