Removed some bashish; added comment support; removed the make
distr functionality, as nothing was using it any more and it was causing problems.
This commit is contained in:
parent
26a9b76507
commit
d2c505ad6b
1 changed files with 13 additions and 16 deletions
29
distr/mkdist
29
distr/mkdist
|
@ -79,6 +79,7 @@ process_dir() {
|
||||||
|
|
||||||
path=$1
|
path=$1
|
||||||
cd $path
|
cd $path
|
||||||
|
echo $PWD
|
||||||
|
|
||||||
# Look for a LIST file and cache the first line.
|
# Look for a LIST file and cache the first line.
|
||||||
|
|
||||||
|
@ -88,7 +89,10 @@ process_dir() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in `cat $path/.distr`; do
|
for i in `cat $path/.distr`; do
|
||||||
if [ -d $i ]; then
|
if [ "${i:0:1}" = "#" ]; then
|
||||||
|
# Comment. Do nothing.
|
||||||
|
true
|
||||||
|
elif [ -d $i ]; then
|
||||||
# This is a directory. Recurse into it.
|
# This is a directory. Recurse into it.
|
||||||
|
|
||||||
( process_dir $path/$i )
|
( process_dir $path/$i )
|
||||||
|
@ -102,20 +106,8 @@ process_dir() {
|
||||||
$arch cDr `cat LIST`
|
$arch cDr `cat LIST`
|
||||||
addfile $path/$archivename
|
addfile $path/$archivename
|
||||||
else
|
else
|
||||||
(
|
echo "Don't know what to do with $i, listed in $PWD/.distr."
|
||||||
PATH=$PATH:.
|
exit 1
|
||||||
export PATH
|
|
||||||
make distr || make $i || (
|
|
||||||
echo "Don't know what to do with $i, listed in $1/.distr."
|
|
||||||
exit 1
|
|
||||||
)
|
|
||||||
|
|
||||||
if [ ! -f "$path/$i" ]; then
|
|
||||||
echo "Make failed for $i, listed in $path/.distr"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
addfile $path/$i
|
|
||||||
)
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -158,7 +150,12 @@ echo "Done."
|
||||||
|
|
||||||
# Revision history
|
# Revision history
|
||||||
# $Log$
|
# $Log$
|
||||||
# Revision 1.2 2005-06-24 23:19:23 dtrg
|
# Revision 1.3 2007-02-24 02:05:56 dtrg
|
||||||
|
# Removed some bashish; added comment support; removed the make
|
||||||
|
# distr functionality, as nothing was using it any more and it was
|
||||||
|
# causing problems.
|
||||||
|
#
|
||||||
|
# Revision 1.2 2005/06/24 23:19:23 dtrg
|
||||||
# Added new mkdist tool.
|
# Added new mkdist tool.
|
||||||
#
|
#
|
||||||
# Revision 1.1 2005/06/24 22:13:57 dtrg
|
# Revision 1.1 2005/06/24 22:13:57 dtrg
|
||||||
|
|
Loading…
Add table
Reference in a new issue