[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/scripts
From: Michael Buesch <mbuesch () freenet ! de>
Date: 2005-03-16 9:38:14
Message-ID: 20050316093814.7138E16F45 () office ! kde ! org
[Download RAW message or body]
CVS commit by mbuesch:
let the user optionally select the package type.
M +25 -14 createPackage.sh 1.4
--- kdeextragear-1/scripts/createPackage.sh #1.3:1.4
@@ -97,5 +97,7 @@
Only for '-r CVS'.
- --package Create tarballs (.tar.gz and .tar.bz2).
+ --package [TYPE] Create tarballs (.tar.gz and/or .tar.bz2).
+ You can specify an optional package type: \"gzip\" or \"bzip2\"
+ If no type is given, both types will be generated.
--packagedir <TARBALLDIR> Place a copy of the packages into TARBALLDIR.
@@ -483,13 +485,14 @@
print "Creating configure script and Makefile.in's"
(cd $APPDIR; runCommand make -f Makefile.cvs)
-
- if [ $PACKAGE == "yes" ]
- then
- TARNAME="$APPNAME-$APPVERSION.tar"
-
+
+ TARNAME="$APPNAME-$APPVERSION.tar"
+ if [ $PACKAGE == "gzip" ] || [ $PACKAGE == "yes" ]
+ then
print "Packaging application ($TARNAME.gz)..."
$GZIP $TARNAME.gz $APPDIR
if [ $BUILDDIR != $TARBALLDIR ]; then cp $TARNAME.gz $TARBALLDIR; fi
-
+ fi
+ if [ $PACKAGE == "bzip2" ] || [ $PACKAGE == "yes" ]
+ then
print "Packaging application ($TARNAME.bz2)..."
$BZIP2 $TARNAME.bz2 $APPDIR
@@ -509,13 +512,14 @@
print "Creating translations configure script and Makefile.in's"
(cd $I18NDIR; runCommand make -f Makefile.cvs)
-
- if [ $PACKAGE == "yes" ]
+
+ TARNAME="$APPNAME-i18n-$APPVERSION.tar"
+ if [ $PACKAGE == "gzip" ] || [ $PACKAGE == "yes" ]
then
- TARNAME="$APPNAME-i18n-$APPVERSION.tar"
-
print "Packaging translations ($TARNAME.gz)..."
$GZIP $TARNAME.gz $I18NDIR
if [ $BUILDDIR != $TARBALLDIR ]; then cp $TARNAME.gz $TARBALLDIR; fi
-
+ fi
+ if [ $PACKAGE == "bzip2" ] || [ $PACKAGE == "yes" ]
+ then
print "Packaging tramslations ($TARNAME.bz2)..."
$GZIP $TARNAME.bz2 $I18NDIR
@@ -684,5 +688,12 @@
;;
--package)
- PACKAGE="yes"
+ PKGTYPE="$2"
+ if [ "$PKGTYPE" == "gzip" ] || [ "$PKGTYPE" == "bzip2" ]
+ then
+ shift
+ PACKAGE="$PKGTYPE"
+ else
+ PACKAGE="yes"
+ fi
;;
--packagedir)
@@ -736,3 +747,3 @@
packageApplication
-packageTranslations
\ No newline at end of file
+packageTranslations
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic