equal
deleted
inserted
replaced
115 $(INSTALL_DATA) $$item $(HOME)/$$item |
115 $(INSTALL_DATA) $$item $(HOME)/$$item |
116 else |
116 else |
117 files+=($$item) |
117 files+=($$item) |
118 fi |
118 fi |
119 elif [[ -d $$item ]]; then |
119 elif [[ -d $$item ]]; then |
120 for file in `find $$item`; do |
120 for file in `find $$item -type f`; do |
121 if [[ -d $$file ]]; then |
|
122 mkdir -p $(HOME)/$$file |
|
123 continue |
|
124 fi |
|
125 $(INSTALL_DATA) $$file $(HOME)/$$file |
121 $(INSTALL_DATA) $$file $(HOME)/$$file |
126 done |
122 done |
127 fi |
123 fi |
128 done |
124 done |
129 $(INSTALL_DATA) -t $(HOME) "$${files[@]}" |
125 $(INSTALL_DATA) -t $(HOME) "$${files[@]}" |
142 for item in $(IFNONEXIST_ITEMS); do |
138 for item in $(IFNONEXIST_ITEMS); do |
143 if [[ -f $$item ]] && ! [[ -f $(HOME)/$$item ]]; then |
139 if [[ -f $$item ]] && ! [[ -f $(HOME)/$$item ]]; then |
144 $(INSTALL_DATA) $$item $(HOME)/$$item |
140 $(INSTALL_DATA) $$item $(HOME)/$$item |
145 fi |
141 fi |
146 if [[ -d $$item ]]; then |
142 if [[ -d $$item ]]; then |
147 for file in `find $$item`; do |
143 for file in `find $$item -type f`; do |
148 if [[ -d $$file ]]; then |
|
149 mkdir -p $(HOME)/$$file |
|
150 continue |
|
151 fi |
|
152 if [[ ! -f $(HOME)/$$file ]]; then |
144 if [[ ! -f $(HOME)/$$file ]]; then |
153 $(INSTALL_DATA) $$file $(HOME)/$$file |
145 $(INSTALL_DATA) $$file $(HOME)/$$file |
154 fi |
146 fi |
155 done |
147 done |
156 fi |
148 fi |