]> git.mxchange.org Git - friendica-addons.git/blobdiff - buildtgz
Merge pull request #140 from repat/master
[friendica-addons.git] / buildtgz
index dec535dd6192dd51d56d901cbb2933bff9653cdc..94eee46443e20904f0b3bdb45937de79575ec4bb 100755 (executable)
--- a/buildtgz
+++ b/buildtgz
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
 # Make doesn't handle subdirs very well 
 # without providing a Makefile in each one.
 # So we will just manually find any source
 # directories which contain any files that 
-# are newer than are .tgz file and rebuild
+# are newer than our .tgz file and rebuild
 # it if any are found
 
 SUBDIRS=`ls -d [a-z]*/ | tr -d /`
@@ -11,12 +11,14 @@ for a in $SUBDIRS; do
        TGZ=$a.tgz
        if [[ ! -f $TGZ ]]; then
                echo "Building: " $TGZ
-               tar zcvf $TGZ $a
+#              git log $a > $a/$a.log
+               tar zcvf $TGZ --exclude=.[a-z]* $a
        else
                TOUCHED=`find $a -cnewer $TGZ`
                if [[ -n $TOUCHED ]]; then
                        echo "Building: " $TGZ
-                       tar zcvf $TGZ $a
+#                      git log $a > $a/$a.log
+                       tar zcvf $TGZ --exclude=.[a-z]* $a
                fi
        fi
 done