[PC-BSD Commits] r7866 - pcbsd/current/src-sh/pbi-manager/module-examples
svn at pcbsd.org
svn at pcbsd.org
Thu Oct 21 13:15:42 PDT 2010
Author: kris
Date: 2010-10-21 13:15:42 -0700 (Thu, 21 Oct 2010)
New Revision: 7866
Modified:
pcbsd/current/src-sh/pbi-manager/module-examples/convertoldmod.sh
Log:
Small update to module conversion script, allow us to specify an alt out-dir
Modified: pcbsd/current/src-sh/pbi-manager/module-examples/convertoldmod.sh
===================================================================
--- pcbsd/current/src-sh/pbi-manager/module-examples/convertoldmod.sh 2010-10-21 20:13:09 UTC (rev 7865)
+++ pcbsd/current/src-sh/pbi-manager/module-examples/convertoldmod.sh 2010-10-21 20:15:42 UTC (rev 7866)
@@ -25,14 +25,18 @@
}
odir="${1}"
-ndir="${1}.new"
+if [ ! -z "$2" ]; then
+ ndir="${2}"
+else
+ ndir="${1}.new"
+fi
if [ ! -e "${odir}/pbi.conf" ] ; then
echo "Invalid module dir!"
exit 1
fi
if [ -d "${ndir}" ] ; then rm -rf "${ndir}" ; fi
-mkdir "${ndir}"
+mkdir -p "${ndir}"
mkdir "${ndir}/scripts"
mkdir "${ndir}/xdg-desktop"
mkdir "${ndir}/xdg-menu"
More information about the Commits
mailing list