]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
perl-array-compare and perl-pathtools: fix in packlist
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 4 Dec 2006 19:13:17 +0000 (19:13 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 4 Dec 2006 19:13:17 +0000 (19:13 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@788 370017ae-e619-0410-ac65-c121f96126d4

dev/perl/perl-array-compare/perl-array-compare.SlackBuild
dev/perl/perl-pathtools/perl-pathtools.SlackBuild

index b12b7783ad0aabace4be4a91d8931b182b037773..b6535498bab7a219963c6c106441b2517c2a5420 100755 (executable)
@@ -87,8 +87,10 @@ cd $TMP/package-$PACKAGE
 
 # we need to fix .packlist
 string="`echo $TMP/package-$PACKAGE | sed -e 's/\//\\\\\//g'`"
-find . -name .packlist -exec sed -e "s/^$string//g" {} \; > packlist
-find . -name .packlist -exec mv packlist {} \;
+for file in `find -name .packlist`; do
+  sed -e "s/^$string//g" $file > $file.tmp
+  mv $file.tmp $file
+done
 
 mkdir install
 
index bb6f47b49412a29ed424ea4c5c532a7dd82302ba..40df1ffcd60e71481b6aa2141e32f69d8c0ee9be 100755 (executable)
@@ -87,8 +87,10 @@ cd $TMP/package-$PACKAGE
 
 # we need to fix .packlist
 string="`echo $TMP/package-$PACKAGE | sed -e 's/\//\\\\\//g'`"
-find . -name .packlist -exec sed -e "s/^$string//g" {} \; > packlist
-find . -name .packlist -exec mv packlist {} \;
+for file in `find -name .packlist`; do
+  sed -e "s/^$string//g" $file > $file.tmp
+  mv $file.tmp $file
+done
 
 mkdir install