Changeset 5820


Ignore:
Timestamp:
2010-12-23 11:54:38 (2 years ago)
Author:
mpo
Message:

suggested fixes to upgrade-app.sh in the daisy package
makes it do well with relative paths #838 and space-paths #837

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daisy/tools/daisy-maven-plugin/src/main/resources/org/outerj/daisy/maven/plugin/scripts/upgrade-app.sh

    r5805 r5820  
    2727[ -z "$1" ] && error "I need at least one argument" 
    2828 
    29 app=$1 
     29app=$(cd $1 && pwd); 
     30 
    3031currVerFile=$app/package.version 
    3132read currVer < $currVerFile 
     
    5253 
    5354echo "Files to delete before copying new package:" 
    54 (cd $oldpack/repodata && find . -type f | xargs -n1 -I {} bash -c "test -f ${app}/repodata/{} && echo rm ${app}/repodata/{}") 
    55 (cd $oldpack/wikidata && find . -type f | xargs -n1 -I {} bash -c "test -f ${app}/wikidata/{} && echo rm ${app}/wikidata/{}") 
     55(cd $oldpack/repodata && find . -type f | xargs -n1 -I {} bash -c "test -f '${app}/repodata/{}' && echo rm \'${app}/repodata/{}\'") 
     56(cd $oldpack/wikidata && find . -type f | xargs -n1 -I {} bash -c "test -f '${app}/wikidata/{}' && echo rm \'${app}/wikidata/{}\'") 
    5657echo "I will remove the files listed above before copying the new package" 
    5758echo "Is this okay? (type 'this is okay' to continue)" 
     
    6162 
    6263echo "Removing old repodata and wikidata files" 
    63 (cd $oldpack/repodata && find . -type f | xargs -n1 -I {} bash -c "test -f ${app}/repodata/{} && echo rm ${app}/repodata/{}")|sh 
    64 (cd $oldpack/wikidata && find . -type f | xargs -n1 -I {} bash -c "test -f ${app}/wikidata/{} && echo rm ${app}/wikidata/{}")|sh 
     64(cd $oldpack/repodata && find . -type f | xargs -n1 -I {} bash -c "test -f '${app}/repodata/{}' && echo rm \'${app}/repodata/{}\'")|sh 
     65(cd $oldpack/wikidata && find . -type f | xargs -n1 -I {} bash -c "test -f '${app}/wikidata/{}' && echo rm \'${app}/wikidata/{}\'")|sh 
    6566 
    6667echo "Copying new repodata and wikidata files" 
Note: See TracChangeset for help on using the changeset viewer.