diff --git a/astronaut/astronaut b/astronaut/astronaut index d138e25..d8350de 100755 --- a/astronaut/astronaut +++ b/astronaut/astronaut @@ -54,7 +54,7 @@ package_options() { :; } # Per-package options function. [ -f "$HOME/.astronaut.conf" ] && . "$HOME/.astronaut.conf" # Options not in the configuration -_download_only=false +download_only=false _vcs_only=false _nuke_dir_install=false unset _user_options # Options specified in the command line get the highest priority @@ -130,7 +130,7 @@ while getopts "h?s:b:i:p:IcCdvo:" opt; do _nuke_dir_install=true ;; d) - _download_only=true + download_only=true ;; v) _vcs_only=true @@ -286,7 +286,7 @@ import() { . "$(dirname "$_satellite")/functions/$1.sh" } -# Set some functions in accordance to the _download_only option. +# Set some functions in accordance to the download_only option. header_end() { :; } if [ "$_vcs_only" = true ]; then header_end() { @@ -295,7 +295,7 @@ if [ "$_vcs_only" = true ]; then fi } fi -if [ "$_download_only" = true ]; then +if [ "$download_only" = true ]; then # Disable some functions extract() { :; } getfile() { :; } @@ -309,7 +309,7 @@ fi mkdir -p "$dir_source" dir_source="$(realpath "$dir_source")" -if [ "$_download_only" = false ]; then +if [ "$download_only" = false ]; then mkdir -p "$dir_build" mkdir -p "$dir_install" dir_build="$(realpath "$dir_build")" @@ -340,7 +340,7 @@ for _satellite in "$@"; do ( options="$_user_options$(package_options "$_satname"),$options" - if [ "$_download_only" = true ]; then + if [ "$download_only" = true ]; then # Just download it . "$_satellite" else diff --git a/astronaut/examples/hello.sat b/astronaut/examples/hello.sat index 9e9dfec..dc40165 100644 --- a/astronaut/examples/hello.sat +++ b/astronaut/examples/hello.sat @@ -41,6 +41,7 @@ define_option 'test=Default value' # It is also allowed to provide no descripti # - cmd_download # - cmd_extract # - vcs_compile +# - download_only # - options # Get them files. diff --git a/graveyard/unmaintained_satellites/python3-requests.sat b/graveyard/unmaintained_satellites/python3-requests.sat deleted file mode 100644 index 89194f1..0000000 --- a/graveyard/unmaintained_satellites/python3-requests.sat +++ /dev/null @@ -1,14 +0,0 @@ -import 'compile/python' - -name=requests -version=2.12.3 -update_url="https://github.com/kennethreitz/$name/releases" - -dlextract "https://github.com/kennethreitz/$name/archive/v$version.tar.gz" \ - 'bae63b3d54e548ccd97b86573a43f1aa' -header_end - -cd "$name-$version" -compile_python 3 - -# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: