Browse Source

Small fix in examples

master
mid-kid 8 years ago
parent
commit
ba1d0fa479
  1. 14
      astronaut/examples/hello.sat
  2. 2
      astronaut/template.sat

14
astronaut/examples/hello.sat

@ -1,6 +1,6 @@
# Example of a satellite file, which is just a shell script with a cool name. # Example of a satellite file, which is just a shell script with a cool name.
import "say_hello" # Import some functions. See functions/say_hello.sh for more info. import 'say_hello' # Import some functions. See functions/say_hello.sh for more info.
# Info (Please declare it, as it will be used outside of this script, too) # Info (Please declare it, as it will be used outside of this script, too)
# Required info # Required info
@ -46,19 +46,19 @@ define_option 'test=Default value' # It is also allowed to provide no descripti
# Get them files. # Get them files.
# URL [REQUIRED], MD5sum, Custom command # URL [REQUIRED], MD5sum, Custom command
download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \ download "https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \
"6cd0ffea3884a4e79330338dcc2987d6" \ '6cd0ffea3884a4e79330338dcc2987d6' \
"curl -L -o {dst} {src}" 'curl -L -o {dst} {src}'
# Abbreviation download and extract. Does not allow custom commands. # Abbreviation download and extract. Does not allow custom commands.
#dlextract "https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \ #dlextract "https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \
# "6cd0ffea3884a4e79330338dcc2987d6" # '6cd0ffea3884a4e79330338dcc2987d6'
# Abbreviation for downloading a file and copying it over. # Abbreviation for downloading a file and copying it over.
#dlfile "http://example.com/Waffles.txt" \ #dlfile 'http://example.com/Waffles.txt' \
# "MD5SUM" # 'MD5SUM'
# Copy local file to build directory. File should be stored in $(basedir <satellite file>)/extrafiles/$name/ # Copy local file to build directory. File should be stored in $(basedir <satellite file>)/extrafiles/$name/
#extrafile "Herpaderp.txt" #extrafile 'Herpaderp.txt'
header_end # End of the header. header_end # End of the header.
# The only commands that should be in the header are: # The only commands that should be in the header are:

2
astronaut/template.sat

@ -7,7 +7,7 @@ update_url="https://ftp.gnu.org/gnu/$name/"
define_option '!check: Enable the testsuite.' define_option '!check: Enable the testsuite.'
dlextract "https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \ dlextract "https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \
"6cd0ffea3884a4e79330338dcc2987d6" '6cd0ffea3884a4e79330338dcc2987d6'
header_end header_end
cd "$name-$version" cd "$name-$version"

Loading…
Cancel
Save