]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
more fixes for #67
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sun, 4 Jan 2009 17:44:41 +0000 (17:44 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sun, 4 Jan 2009 17:44:41 +0000 (17:44 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@733 04377dda-e619-0410-9926-eae83683ac58

trunk/src/mkbuild

index e6205ead4e7896efe73926191c678aeb73ebefd0..229b9cd266746a4321ca2a2e23f5e639d1274fbb 100755 (executable)
@@ -624,7 +624,7 @@ function submit_slackbuild {
   done
 
   # remove stuff in old places
-  for candidate in `find . -name $SLACKBUILD`; do
+  for candidate in $(find . -name $(basename $SLACKBUILD)); do
     oldplace="`dirname $candidate | sed -e 's/^\.\///'`"
     if [ "$oldplace" != "$SLACKBUILD_PATH" ]; then
       echo "Removing SlackBuild found at old path $oldplace"
@@ -670,7 +670,7 @@ function submit_mkbuild {
   done
 
   # remove stuff in old places
-  for candidate in `find . -name $MKBUILD_NAME`; do
+  for candidate in $(find . -name $(basename $MKBUILD_NAME)); do
     oldplace="`dirname $candidate | sed -e 's/^\.\///'`"
     if [ "$oldplace" != "$MKBUILD_PATH" ]; then
       echo "Removing mkbuild found at old path $oldplace"