mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
improved makefile dependencies checking, posterous connector
This commit is contained in:
parent
bbb8a4537f
commit
a18b91b73e
6 changed files with 475 additions and 13 deletions
22
buildtgz
Executable file
22
buildtgz
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
# 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
|
||||
# it if any are found
|
||||
|
||||
SUBDIRS=`ls -d [a-z]*/ | tr -d /`
|
||||
for a in $SUBDIRS; do
|
||||
TGZ=$a.tgz
|
||||
if [[ ! -f $TGZ ]]; then
|
||||
echo "Building: " $TGZ
|
||||
tar zcvf $TGZ $a
|
||||
else
|
||||
TOUCHED=`find $a -cnewer $TGZ`
|
||||
if [[ -n $TOUCHED ]]; then
|
||||
echo "Building: " $TGZ
|
||||
tar zcvf $TGZ $a
|
||||
fi
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue