[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-18 10:03:40
Message-ID: 20050318100340.6462F16DE8 () office ! kde ! org
[Download RAW message or body]

CVS commit by mbuesch: 

cleanup application and i18n directories before packaging.


  M +29 -2     createPackage.sh   1.13


--- kdeextragear-1/scripts/createPackage.sh  #1.12:1.13
@@ -7,5 +7,5 @@
 # License: GPL (http://www.gnu.org/)
 
-# Last modification: 2004-15-10
+# $Id$
 
 # Directory lay-out of packages
@@ -32,5 +32,6 @@
 OTHERS_COPYRIGHT="2003-2004 Sebastian Trueg
           2002 Aurelien Gateau
-          2002-2004 Klas Kalass"
+          2002-2004 Klas Kalass
+          2005 Michael Buesch"
 LICENSE="GPL"
 
@@ -293,4 +294,25 @@
 
 #
+# Cleanup the application or i18n directory by removing
+# unneccessary files and directories.
+#
+function cleanupDirectory
+{
+    dir="$1"
+    print "Removing unneccessary files and directories"
+    for file in $CLEANUPFILES
+    do
+        path="$dir/$file"
+        if [ -f "$path" ]; then
+            rm -f $path
+            printlog "         Removed file: $path"
+        elif [ -d "$path" ]; then
+            rm -Rf $path
+            printlog "         Removed directory: $path"
+        fi
+    done
+}
+
+#
 # After all data for the app is gathered, some files
 # still need to be shuffled around.
@@ -492,4 +514,6 @@
     (cd $APPDIR; runCommand make -f Makefile.cvs)
 
+    cleanupDirectory $APPDIR
+
     TARNAME="$APPNAME-$APPVERSION.tar"
     if [ $PACKAGE == "gzip" ] || [ $PACKAGE == "yes" ]
@@ -519,4 +543,6 @@
     (cd $I18NDIR; runCommand make -f Makefile.cvs)
 
+    cleanupDirectory $I18NDIR
+
     TARNAME="$APPNAME-i18n-$APPVERSION.tar"
     if [ $PACKAGE == "gzip" ] || [ $PACKAGE == "yes" ]
@@ -557,4 +583,5 @@
     EXCLUDELANGUAGES="xx"
     GNUFiles="AUTHORS COPYING ChangeLog INSTALL TODO README"
+    CLEANUPFILES="autom4te.cache .cvsignore Makefile.cvs"
     POSTPROCESSSCRIPT=""
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic