summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGravatar Mike Burns <mike@mike-burns.com>2013-08-11 15:48:07 +0200
committerGravatar Mike Burns <mike@mike-burns.com>2013-08-11 15:48:07 +0200
commit0fbc27dbe296e03b4001586a7e29780328cbc657 (patch)
treedf0e2c654f4235939fdc37def18f6baf92e43081 /bin
parent63ab42206f25e181f626ec0c7ddad045fa27846c (diff)
Change `-e` to `-x`
Since the `-e` flag was for exclude patterns, and since it's rare for a word with an `x` to come along, change the `-e` flag to `-x`. Better to do it now before a new release.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lsrc6
-rwxr-xr-xbin/rcdn8
-rwxr-xr-xbin/rcup8
3 files changed, 11 insertions, 11 deletions
diff --git a/bin/lsrc b/bin/lsrc
index 9ed2a71..880bf05 100755
--- a/bin/lsrc
+++ b/bin/lsrc
@@ -151,15 +151,15 @@ handle_command_line() {
local excludes=
local includes=
- while getopts VqvI:e:t:d: opt; do
+ while getopts VqvI:x:t:d: opt; do
case "$opt" in
- e) excludes="$excludes $OPTARG";;
I) includes="$includes $OPTARG";;
t) arg_tags="$arg_tags $OPTARG";;
v) verbosity=$(($verbosity + 1));;
q) verbosity=$(($verbosity - 1));;
d) dotfiles_dirs="$dotfiles_dirs $OPTARG";;
- V) version=1
+ V) version=1;;
+ x) excludes="$excludes $OPTARG";;
esac
done
shift $(($OPTIND-1))
diff --git a/bin/rcdn b/bin/rcdn
index 99812aa..df882e8 100755
--- a/bin/rcdn
+++ b/bin/rcdn
@@ -26,15 +26,15 @@ handle_command_line() {
local excludes=
local includes=
- while getopts VqvI:e:t:d: opt; do
+ while getopts VqvI:x:t:d: opt; do
case "$opt" in
- e) excludes="$excludes $OPTARG";;
I) includes="$includes $OPTARG";;
t) arg_tags="$arg_tags $OPTARG" ;;
v) verbosity=$(($verbosity + 1));;
q) verbosity=$(($verbosity - 1));;
d) dotfiles_dirs="$dotfiles_dirs $OPTARG" ;;
- V) version=1
+ V) version=1 ;;
+ x) excludes="$excludes $OPTARG" ;;
esac
done
shift $(($OPTIND-1))
@@ -52,7 +52,7 @@ handle_command_line() {
LS_ARGS="$LS_ARGS -d $dotfiles_dir"
done
for exclude in $excludes; do
- LS_ARGS="$LS_ARGS -e $exclude"
+ LS_ARGS="$LS_ARGS -x $exclude"
done
for include in $includes; do
LS_ARGS="$LS_ARGS -I $include"
diff --git a/bin/rcup b/bin/rcup
index df9adac..af7a012 100755
--- a/bin/rcup
+++ b/bin/rcup
@@ -80,18 +80,18 @@ handle_command_line() {
local always_copy=0
REPLACE_ALL=0
- while getopts CVqvfiI:e:t:d: opt; do
+ while getopts CVqvfiI:x:t:d: opt; do
case "$opt" in
C) always_copy=1 ;;
d) dotfiles_dirs="$dotfiles_dirs $OPTARG" ;;
- e) excludes="$excludes $OPTARG" ;;
f) REPLACE_ALL=1 ;;
i) REPLACE_ALL=0 ;;
I) includes="$includes $OPTARG" ;;
q) verbosity=$(($verbosity - 1)) ;;
t) arg_tags="$arg_tags $OPTARG" ;;
v) verbosity=$(($verbosity + 1)) ;;
- V) version=1
+ V) version=1 ;;
+ x) excludes="$excludes $OPTARG" ;;
esac
done
shift $(($OPTIND-1))
@@ -113,7 +113,7 @@ handle_command_line() {
LS_ARGS="$LS_ARGS -d $dotfiles_dir"
done
for exclude in $excludes; do
- LS_ARGS="$LS_ARGS -e $exclude"
+ LS_ARGS="$LS_ARGS -x $exclude"
done
for include in $includes; do
LS_ARGS="$LS_ARGS -I $include"