- Timestamp:
- 10/06/2009 16:40:31 (3 years ago)
- Location:
- branches/confman-1.9
- Files:
-
- 10 edited
-
. (modified) (1 prop)
-
confadmin.in (modified) (2 diffs)
-
confadmindoc.sh (modified) (1 diff)
-
confaudit.in (modified) (2 diffs)
-
confexport.in (modified) (1 diff)
-
confman.in (modified) (3 diffs)
-
confmancommon.sh.in (modified) (3 diffs)
-
confmandoc.sh (modified) (1 diff)
-
confmanlib.sh.in (modified) (2 diffs)
-
confsync.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/confman-1.9
-
branches/confman-1.9/confadmin.in
r339 r459 66 66 case $opt in 67 67 d) DEBUG="true" ;; 68 h) shift ; print_help "$@" ; exit 0 ;;68 h) shift ; print_help "$@" ; conf_cleanExit 0 ;; 69 69 *) print_usage 1 ;; 70 70 esac … … 76 76 77 77 case $subcommand in 78 help ) print_help "$@" ; exit 0 ;;78 help ) print_help "$@" ; conf_cleanExit 0 ;; 79 79 setup ) repo_setup ;; 80 80 * ) print_usage 1 ;; 81 81 esac 82 82 83 exit 083 conf_cleanExit 0 84 84 85 85 # vim:ts=4 -
branches/confman-1.9/confadmindoc.sh
r448 r459 44 44 EOF 45 45 46 # Clear the cleanup trap 47 trap EXIT 48 exit $1 46 conf_cleanExit $1 49 47 } 50 48 -
branches/confman-1.9/confaudit.in
r429 r459 53 53 done 54 54 55 trap "conf_cleanExit" EXIT56 55 # If we're in debug mode, we should log stderr messages to the logger 57 56 # as well. Otherwise, we send them to the bit bucket. … … 131 130 conf_unlock_system 132 131 133 trap EXIT134 132 rm -rf $tmproot 135 133 134 conf_cleanExit 0 135 -
branches/confman-1.9/confexport.in
r429 r459 104 104 echo "Export complete." | conf_logger 105 105 106 conf_cleanExit 0 107 -
branches/confman-1.9/confman.in
r455 r459 976 976 case $opt in 977 977 d) DEBUG="true" ; shift ;; 978 h) shift ; print_help "$@" ; exit 0 ;;979 v) print_version ; exit 0 ;;978 h) shift ; print_help "$@" ; conf_cleanExit 0 ;; 979 v) print_version ; conf_cleanExit 0 ;; 980 980 *) print_usage 1 ;; 981 981 esac … … 985 985 subcommand=$1 986 986 shift 987 trap "conf_cleanExit" EXIT988 987 trap "conf_interrupt_trap" HUP INT QUIT TERM 989 988 case $subcommand in 990 help ) print_help "$@" ; trap EXIT; exit 0 ;;991 version ) print_version; trap EXIT; exit 0;;989 help ) print_help "$@" ; conf_cleanExit 0 ;; 990 version ) print_version; conf_cleanExit 0;; 992 991 setup|se* ) setup "$@" ;; 993 992 status ) status "$@" ;; … … 1026 1025 esac 1027 1026 1028 trap EXIT 1029 exit 1027 conf_cleanExit 0 1030 1028 1031 1029 # vim:ts=4:ft=sh -
branches/confman-1.9/confmancommon.sh.in
r414 r459 33 33 UCONF="${HOME}/.confmanrc" 34 34 MYNAME=`basename $0` 35 TMPFILES=""36 35 if [ `id -u` != "0" ]; then 37 36 SUDO="@SUDO@" … … 104 103 fetch_cmd="@WGET@ -q -O" 105 104 105 # Create a base temporary directory for this process 106 export TMPDIR=`$mktemp_dir` 107 106 108 # Get the user config 107 109 if [ -f "$UCONF" ] ; then … … 133 135 134 136 # And we'll set a trap: 135 trap "conf_cleanExit" SIGINT SIGTERM SIGHUP 137 trap "conf_cleanExit" SIGINT SIGTERM SIGHUP EXIT 136 138 -
branches/confman-1.9/confmandoc.sh
r455 r459 76 76 EOF 77 77 78 # Clear the cleanup trap 79 trap EXIT 80 exit $1 78 conf_cleanExit $1 81 79 } 82 80 -
branches/confman-1.9/confmanlib.sh.in
r455 r459 1029 1029 1030 1030 conf_debug "Removing leftover temp files..." >&4 1031 for file in $TMPFILES ; do rm -rf $file ; done1031 rm -rf $TMPDIR 1032 1032 1033 1033 conf_debug "Removing any system or working copy locks..." >&4 … … 1087 1087 function conf_tmp_file { 1088 1088 local file=$(${mktemp_file}) || return 1 1089 TMPFILES="${TMPFILES} ${file}"1090 1089 echo $file 1090 return 0 1091 1091 } 1092 1092 1093 1093 function conf_tmp_dir { 1094 1094 local dir=$(${mktemp_dir}) || return 1 1095 TMPFILES="${TMPFILES} ${dir}"1096 1095 echo $dir 1096 return 0 1097 1097 } 1098 1098 -
branches/confman-1.9/confsync.in
r429 r459 56 56 done 57 57 58 trap "conf_cleanExit" EXIT59 58 # If we're in debug mode, we should log stderr messages to the logger 60 59 # as well. Otherwise, we send them to the bit bucket. … … 146 145 conf_unlock_system 147 146 148 trap EXIT149 147 rm -rf $tmpdir 150 148 149 conf_cleanExit 0 150
Note: See TracChangeset
for help on using the changeset viewer.
