Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

Commit

Permalink
Add filtering by arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
pismute committed Nov 18, 2011
1 parent 8235c54 commit d2341a2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion makepdfs
Expand Up @@ -7,6 +7,8 @@ exclude=('figures' 'figures-dia' 'figures-source' 'latex' 'makepdfs' 'pdf' 'READ
dirContent=`ls $baseDir`
argString=""

echo $i;

for dir in $dirContent; do
if [ -n $dir ]; then

Expand All @@ -18,7 +20,15 @@ for dir in $dirContent; do
done

if [ $isLang -eq 1 ]; then
argString="${argString} ${dir}"
if [ "$1" = "" ]; then
argString="${argString} ${dir}"
else
for i in ${@}; do
if [ $i = $dir ]; then
argString="${argString} ${dir}"
fi
done
fi
fi
fi
done
Expand Down

0 comments on commit d2341a2

Please sign in to comment.