Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

package reset for scripting

  • Loading branch information...
commit 357488e174a6ee2fa350483ddafea9e3644bc0f8 1 parent 2279ee2
@mpapis mpapis authored
View
2  core/api/shell/package/functions
@@ -139,7 +139,7 @@ package()
[[ -n "${package_name}" ]] || __sm.log.fail "Package name must be set/given"
case "${_command}" in
- (cli|make|make.install|is.active|is.installed|install|uninstall|info|configure|configure.flags)
+ (cli|make|make.install|is.active|is.installed|install|uninstall|info|configure|configure.flags|reset)
__sm.package.${_command} "${_params[@]}"
;;
(configure.flag)
View
47 core/internal/shell/package/functions
@@ -1160,3 +1160,50 @@ __sm.package.usage()
"
}
+
+__sm.package.reset()
+{
+ typeset variable
+ typeset -a variables
+
+ variables=(
+ archive_format
+ bin_path
+ configure_flags
+ data_path
+ force_flag
+ install_base_path
+ install_path
+ log_path
+ make_flags
+ package_base_url
+ package_checksum
+ package_checksum_url
+ package_default_version
+ package_dependencies
+ package_dir
+ package_directory
+ package_docs_url
+ package_file
+ package_name
+ package_patches_url
+ packages_path
+ package_url
+ package_user
+ package_version
+ shared_flag
+ source_path
+ src_path
+ static_flag
+ target_path
+ website_url
+ LDFLAGS
+ CFLAGS
+ CPATH
+ )
+
+ for variable in ${variables[@]}
+ do
+ unset ${variable}
+ done
+}
Please sign in to comment.
Something went wrong with that request. Please try again.