Lines Matching refs:basename
119 basename () function
133 local basename=$(basename $URL)
134 local candidate=$(find "$TARFILE_LOCATION" -type f -name "*-$basename")
136 echo "$basename is already present ($candidate)"
138 echo fetching $basename
143 mv $basename ${basename}_broken
145 elif [ -f "$basename" -a -n "$md5sum" ]; then
146 local sum=`$md5sum $md5special $basename | sed "s/ .*//"`
147 mv $basename "$TARFILE_LOCATION/$sum-$basename"
162 local basename=$(basename $URL)
163 if [ -f "$TARFILE_LOCATION/$basename" ]; then
164 echo "$basename is already present"
166 echo "fetching $basename"
171 mv $basename ${basename}_broken
173 elif [ -f "$basename" -a -n "$md5sum" ]; then
174 local sum=`$md5sum $md5special $basename | sed "s/ .*//"`
175 local sum_in_name=`echo $basename | sed "s/-.*//"`
177 echo checksum failure for $basename 2>&1 | tee -a $logfile
178 failed="$failed $basename"
179 mv $basename ${basename}_broken
181 mv $basename "$TARFILE_LOCATION/$basename"
239 epm_archive_tail=`echo $(basename $EPM_URL) | sed 's/-source//'`