Browse Source

ignore .git folder in build operation

tags/stw2018
paul 2 years ago
parent
commit
19ba5a4602
2 changed files with 5 additions and 2 deletions
  1. 1
    1
      build/makerules.sh
  2. 4
    1
      build/stirrups.sh

+ 1
- 1
build/makerules.sh View File

@@ -9,7 +9,7 @@ inc_makerules=true
[ -z "$inc_sources" ] && . "$basedir/build/sources.sh"

sourcefind() {
find "$input" -name .svn -prune -o -type f "$@" -printf '%P\n'
find "$input" -name .svn -prune -name .git -prune -o -type f "$@" -printf '%P\n'
}

mio(){

+ 4
- 1
build/stirrups.sh View File

@@ -20,7 +20,10 @@ dir_maker(){
output="${2%/}"

curpath="$output"
find "$input" -depth -type d \! -path '*/.svn' \! -path '*/.svn/*' -printf '%P\n' \
find "$input" -depth -type d \
\! -path '*/.svn' \! -path '*/.svn/*' \
\! -path '*/.git' \! -path '*/.git/*' \
-printf '%P\n' \
| while read filepath; do
oldpath="$curpath"
curpath="$output/$filepath/"

Loading…
Cancel
Save