projects
/
hdw-linux
/
hdw-linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added devmapper, cryptsetup and libpopt
[hdw-linux/hdw-linux.git]
/
scripts
/
Download
diff --git
a/scripts/Download
b/scripts/Download
index
2d0126c
..
9c6b0dc
100755
(executable)
--- a/
scripts/Download
+++ b/
scripts/Download
@@
-190,7
+190,7
@@
for dir in `ls -A --ignore="CVS" ./download`; do
rm -rf $file $module
dlerror=0
if [ "${is_cvs}" = "cvs" ] ; then
rm -rf $file $module
dlerror=0
if [ "${is_cvs}" = "cvs" ] ; then
- cvs -z
9
-d:pserver:${user}@${loc}:/${repos} co $module
+ cvs -z
3
-d:pserver:${user}@${loc}:/${repos} co $module
[ "$?" != "0" ] && dlerror=1
else
export CVS_RSH=ssh
[ "$?" != "0" ] && dlerror=1
else
export CVS_RSH=ssh
@@
-215,12
+215,21
@@
for dir in `ls -A --ignore="CVS" ./download`; do
location="${mirror}/hdw-linux-${hdw_version}/$dir/$pkg/"
echo "Downloading $dir - package $file ..."
echo
location="${mirror}/hdw-linux-${hdw_version}/$dir/$pkg/"
echo "Downloading $dir - package $file ..."
echo
+ # possibly the package exists
mkdir -p ./download/$dir/$pkg ; cd ./download/$dir/$pkg
mkdir -p ./download/$dir/$pkg ; cd ./download/$dir/$pkg
+ tolf="`find ../.. -name $file | tail -1`"
+ if [ -n "$tolf" ] ; then
+ [ -d $tolf ] && tolf=""
+ fi
if [ -f ./$file ] ; then
echo "$file allready downloaded."
echo
if [ -f ./$file ] ; then
echo "$file allready downloaded."
echo
+ elif [ -n "$tolf" ] ; then
+ ln -svf $tolf .
else
else
- $wget_cmd -c $location$file -O pkg-src.in && \
+
+ $wget_cmd -c $location$file \
+ -O pkg-src.in &&
mv pkg-src.in $file
echo "done."
fi
mv pkg-src.in $file
echo "done."
fi