Update make-nautilus avoid read/delete on the same file
This commit is contained in:
parent
3f95738a27
commit
f4d48c7297
1 changed files with 5 additions and 8 deletions
|
|
@ -25,19 +25,16 @@ for patch in 16_unity_new_documents.patch; do
|
||||||
sed "/$patch/d" -i debian/patches/series
|
sed "/$patch/d" -i debian/patches/series
|
||||||
done
|
done
|
||||||
|
|
||||||
check_file() {
|
|
||||||
if [ ! -f $1 ]; then
|
|
||||||
echo " $1 doesn't exist removing from debian/docs"
|
|
||||||
sed -i "/^$1/d" debian/docs
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "Checking for necessary files to install by debian/docs."
|
echo "Checking for necessary files to install by debian/docs."
|
||||||
while read i
|
while read i
|
||||||
do
|
do
|
||||||
check_file $i
|
if [ -f $i ]; then
|
||||||
|
echo $i >> debian/docs.new
|
||||||
|
fi
|
||||||
done < debian/docs
|
done < debian/docs
|
||||||
|
|
||||||
|
mv debian/docs.new debian/docs
|
||||||
|
cat debian/docs
|
||||||
|
|
||||||
changelog "Revert from using ubuntu-help to default gnome-help"
|
changelog "Revert from using ubuntu-help to default gnome-help"
|
||||||
compile
|
compile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue