Permalink
Browse files

postprocess-unix: added quotes as suggested by iku

  • Loading branch information...
1 parent 22e56ef commit 573dc9c239377f8f770c75dcb0cb0457d085c99b @dxli dxli committed Mar 4, 2012
Showing with 18 additions and 18 deletions.
  1. +18 −18 scripts/postprocess-unix.sh
@@ -1,36 +1,36 @@
#!/bin/bash
THISDIR="`pwd`"
-RESOURCEDIR="`pwd`/unix/resources"
-TSDIR="`pwd`/ts"
-DOCDIR="`pwd`/support/doc"
+RESOURCEDIR="${THISDIR}/unix/resources"
+TSDIR="${THISDIR}/ts"
+DOCDIR="${THISDIR}/support/doc"
# Generate Help Files
-cd "$DOCDIR"
+cd "{$DOCDIR}"
qcollectiongenerator LibreCADdoc.qhcp
-cd "$THISDIR"
+cd "${THISDIR}"
# Postprocess for unix
-mkdir -p $RESOURCEDIR/fonts
-mkdir -p $RESOURCEDIR/patterns
-mkdir -p $RESOURCEDIR/doc
-cp support/patterns/*.dxf $RESOURCEDIR/patterns
-#cp support/fonts/*.cxf $RESOURCEDIR/fonts
-cp support/fonts/*.lff* $RESOURCEDIR/fonts
-#cp support/doc/*.qhc $RESOURCEDIR/doc
-#cp support/doc/*.qch $RESOURCEDIR/doc
-find support/library -type d -not -path "*.svn*" | sed s/support// | xargs -IFILES mkdir $RESOURCEDIR/FILES
-find support/library -type f -iname *.dxf -not -path "*.svn*" | sed s/support// | xargs -IFILES cp support/FILES $RESOURCEDIR/FILES
+mkdir -p "${RESOURCEDIR}"/fonts
+mkdir -p "${RESOURCEDIR}"/patterns
+mkdir -p "${RESOURCEDIR}"/doc
+cp support/patterns/*.dxf "${RESOURCEDIR}"/patterns
+#cp support/fonts/*.cxf "${RESOURCEDIR}"/fonts
+cp support/fonts/*.lff* "${RESOURCEDIR}"/fonts
+#cp support/doc/*.qhc "${RESOURCEDIR}"/doc
+#cp support/doc/*.qch "${RESOURCEDIR}"/doc
+find support/library -type d | sed s/support// | xargs -IFILES mkdir "${RESOURCEDIR}"/FILES
+find support/library -type f -iname *.dxf | sed s/support// | xargs -IFILES cp support/FILES "${RESOURCEDIR}"/FILES
# Generate translations
lrelease librecad.pro
-mkdir -p $RESOURCEDIR/qm
+mkdir -p "${RESOURCEDIR}"/qm
# Go into translations directory
-cd "$TSDIR"
+cd "${TSDIR}"
for tf in *.qm
do
- cp $tf $RESOURCEDIR/qm/$tf
+ cp "${tf}" "${RESOURCEDIR}/qm/${tf}"
done

0 comments on commit 573dc9c

Please sign in to comment.