update-pot.sh: Fix patch call
[quassel.git] / po / update-pot.sh
index 9a7ecb1..bb091ab 100755 (executable)
@@ -9,5 +9,5 @@ quassel_pot_patch="${quassel_pot}.patch"
 
 lupdate ${src_dir} -ts ${quassel_ts} && lconvert -i ${quassel_ts} -o ${quassel_po}    \
   && msguniq -o ${quassel_pot} ${quassel_po} && rm ${quassel_ts} ${quassel_po}        \
-  && patch -Np2 < ${quassel_pot_patch}                                                \
+  && patch -d ${po_dir} -Np2 < ${quassel_pot_patch}                                   \
   && sed -i -re 's/^msgstr\[0\] ""/msgstr[0] ""\nmsgstr[1] ""/;' ${quassel_pot_patch}