27 lines
333 B
Bash
27 lines
333 B
Bash
#!/bin/sh
|
|
|
|
|
|
for file in `ls -t *.php | grep -v -e dialog.php`
|
|
do
|
|
isPDF=0
|
|
|
|
grep -q "\$pdf->" $file
|
|
if [ $? -eq 0 ]
|
|
then
|
|
isPDF=1
|
|
fi
|
|
|
|
if [ $isPDF -eq 0 ]
|
|
then
|
|
if [ "$file" == "find-enums.php" ]
|
|
then
|
|
exit
|
|
fi
|
|
|
|
echo "copy $file"
|
|
cp $file ../new.hotlunches.net
|
|
fi
|
|
done
|
|
|
|
|