- Timestamp:
- 09/17/2009 21:45:43 (3 years ago)
- Location:
- branches/confman-1.9
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
conflock.in (modified) (4 diffs)
-
confmancommon.sh.in (modified) (3 diffs)
-
confmanlib.sh.in (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/confman-1.9
- Property svn:mergeinfo changed
/trunk merged: 401,406-410
- Property svn:mergeinfo changed
-
branches/confman-1.9/conflock.in
r329 r412 37 37 38 38 if [ -z "$lockfile" ] ; then 39 echo "No lock file specified in conflock.sh" >&2; exit 2; 39 echo "No lock file specified in conflock" >&2; exit 2; 40 fi 41 42 if ! [ -d `dirname "$lockfile"` ] ; then 43 echo "Lock file directory does not exist" >&2; exit 2; 40 44 fi 41 45 … … 71 75 72 76 if [ -z "$lockfile" ] ; then 73 echo "No lock file specified in conflock .sh" >&2; exit 2;77 echo "No lock file specified in conflock" >&2; exit 2; 74 78 fi 75 79 … … 92 96 93 97 if [ -z "$lockfile" ] ; then 94 echo "No lock file specified in conflock .sh" >&2; exit 2;98 echo "No lock file specified in conflock" >&2; exit 2; 95 99 fi 96 100 … … 109 113 unlock) unlock "$@";; 110 114 haslock) haslock "$@";; 111 *) echo "Unknown argument to conflock .sh: $1" >&2; exit 2;;115 *) echo "Unknown argument to conflock: $1" >&2; exit 2;; 112 116 esac 113 117 -
branches/confman-1.9/confmancommon.sh.in
r397 r412 80 80 stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" 81 81 readlink_cmd="@GREADLINK@" 82 fetch_cmd="fetch -q -o"83 82 ;; 84 83 Linux) … … 90 89 stat_opts="mode=%a owner=%U group=%G" 91 90 readlink_cmd="readlink" 92 fetch_cmd="@WGET@ -q -O"93 91 ;; 94 92 *) … … 100 98 stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" 101 99 readlink_cmd="@GREADLINK@" 102 fetch_cmd="fetch -q -o"103 100 ;; 104 101 esac 102 103 # Things that don't vary by OS 104 fetch_cmd="@WGET@ -q -O" 105 105 106 106 # Get the user config -
branches/confman-1.9/confmanlib.sh.in
r395 r412 98 98 99 99 function conf_lock_wcopy { 100 conf_require_wcopy 100 101 ${LOCK} lock $$ $(conf_wcopy_lockfile) || exit 1 101 102 WCOPY_DIRTY="true" … … 275 276 modules=$(ls -1 ${WORK_PATH} | egrep -v '^(\.svn|checkpoints)$') # until ticket $40 is resolved 276 277 for module in $modules; do 277 tar - czf "$exportpath/$module.tgz" -C "${WORK_PATH}" $module278 tar -hczf "$exportpath/$module.tgz" -C "${WORK_PATH}" $module 278 279 done 279 280 ;; … … 281 282 for recipefile in $(conf_recipe_dir)/*; do 282 283 modules="meta $(conf_get_recipe $recipefile)" 283 tar - czf "$exportpath/${recipefile#$(conf_recipe_dir)/}.tgz" -C "${WORK_PATH}" $modules284 tar -hczf "$exportpath/${recipefile#$(conf_recipe_dir)/}.tgz" -C "${WORK_PATH}" $modules 284 285 done 285 286 ;; … … 308 309 # This is a hack to work around NFS home dirs, for now: 309 310 ${NFS_HACK:-false} && chmod o+rx ${WORK_PATH} 311 312 # Test to see if the SVN working copy is out of date 313 if ! @SVN@ info $moduledir >/dev/null ; then 314 echo "Error: $moduledir isn't usable by svn." >&2 315 exit 1 316 fi 310 317 311 318 for directory in `find -L $moduledir -mindepth 1 -type d | grep -v "\.svn"`; … … 681 688 # Now, we have to go fix all the confman headers in all the files... 682 689 find ${WORK_PATH}/${newmod} -type f -not -path '*/.svn/*' -exec \ 683 gsed -i -r "s/^(# Managed under )${oldmod}( module)/\1${newmod}\2/"\684 {} \;690 ${sed_cmd} -i -r \ 691 "s/^(# Managed under )${oldmod}( module)/\1${newmod}\2/" {} \; 685 692 686 693 @SVN@ update ${WORK_PATH} || \ … … 942 949 } 943 950 951 function conf_require_wcopy { 952 if ! [ -d "${WORK_PATH}" ] ; then 953 echo "Error: this action requires that your working copy exist." >&2 954 echo 'Please see `confman help setup` for more information.' >&2 955 exit 1 956 fi 957 } 958 944 959 function conf_tmp_file { 945 960 local file=$(${mktemp_file}) || return 1
Note: See TracChangeset
for help on using the changeset viewer.
