aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2011-10-17 17:02:08 +0600
committerAnton Bobov <abobov@gmail.com>2011-10-17 17:02:08 +0600
commit147a327f8a302d327f149509304c5e9a895ae93e (patch)
treeafaee29f85272d18f613f2f00c4e7827a5ebedee
parent6be209eefc3d0e1935b8798afe682e69495b8f7f (diff)
f
-rwxr-xr-xcreate_links.sh12
-rwxr-xr-x[-rw-r--r--]ignore-10093352-SIBSAC3
2 files changed, 8 insertions, 7 deletions
diff --git a/create_links.sh b/create_links.sh
index 6c2ab08..00a341a 100755
--- a/create_links.sh
+++ b/create_links.sh
@@ -4,15 +4,15 @@
set -e
dir="$(cd "$(dirname "$0")" && pwd)"
-os=$(uname -o)
+os=$(uname --operating-system)
ignore="$dir/ignore-$(/bin/hostname)"
filter() {
- fname="$(basename "$@")"
- if [[ "$fname" == "." || "$fname" == ".." ]] ; then
+ fname="files/$(basename "$@")"
+ if [[ "$fname" == "files/." || "$fname" == "files/.." ]] ; then
return 0
fi
- return $(grep -x -F "$fname" "$ignore" >/dev/null 2>&1)
+ return $(grep --line-regexp --fixed-strings "$fname" "$ignore" >/dev/null 2>&1)
}
create_windows_link()
@@ -20,9 +20,9 @@ create_windows_link()
target=$target/$(basename "$link")
rm -rvf "$target"
if [ -d "$link" ] ; then
- cmd /c mklink /D $(cygpath -w "$target") $(cygpath -w "$link")
+ cmd /c mklink /D $(cygpath --windows "$target") $(cygpath --windows "$link")
else
- cmd /c mklink $(cygpath -w "$target") $(cygpath -w "$link")
+ cmd /c mklink $(cygpath --windows "$target") $(cygpath --windows "$link")
fi
}
diff --git a/ignore-10093352-SIBSAC b/ignore-10093352-SIBSAC
index 1408e70..174dadb 100644..100755
--- a/ignore-10093352-SIBSAC
+++ b/ignore-10093352-SIBSAC
@@ -1 +1,2 @@
-.mutt
+files/.mutt
+files/.gvimrc-dexter-laptop