summaryrefslogtreecommitdiff
path: root/bin/mkrc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mkrc')
-rwxr-xr-xbin/mkrc11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/mkrc b/bin/mkrc
index a9eef9c..cf360bf 100755
--- a/bin/mkrc
+++ b/bin/mkrc
@@ -23,6 +23,8 @@ install_dotfile() {
cd $prior_wd
}
+. `dirname $0`/../libexec/rcm/rcm.sh
+
if [ $# -eq 0 ]; then
echo "Usage: dotfiles-add [-t tag] filename ..."
exit 1
@@ -30,16 +32,21 @@ fi
tag=
verbosity=0
-while getopts vqt: opt; do
+version=0
+while getopts Vvqt: opt; do
case "$opt" in
t) tag=$OPTARG;;
v) verbosity=$(($verbosity + 1));;
q) verbosity=$(($verbosity - 1));;
+ V) version=1
esac
done
shift $(($OPTIND-1))
-if [ $verbosity -ge 2 ]; then
+if [ $version -eq 1 ]; then
+ version mkrc
+ exit 0
+elif [ $verbosity -ge 2 ]; then
MV="$MV -v"
INSTALL="$INSTALL -vv"
elif [ $verbosity -eq 1 ]; then