aboutsummaryrefslogtreecommitdiff
path: root/projects/libreboot-release
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-06-25 18:00:48 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-06-25 18:45:34 -0400
commit00966661823723ea929ddf1f913d8ab0c2fc4796 (patch)
treeb3595320f129404ef8c593c223abed7e82643895 /projects/libreboot-release
parent0accfe9b22fc8d79461101c33f876767da72d3ef (diff)
downloadlibrebootfr-00966661823723ea929ddf1f913d8ab0c2fc4796.tar.gz
librebootfr-00966661823723ea929ddf1f913d8ab0c2fc4796.zip
Vars TAR_XZ,ASC,SHA256SUM renamed for generality.
Will help facilitate sane code when handling: archive formats, checksum file extensions, signature formats.
Diffstat (limited to 'projects/libreboot-release')
-rw-r--r--projects/libreboot-release/install/libreboot-release30
1 files changed, 15 insertions, 15 deletions
diff --git a/projects/libreboot-release/install/libreboot-release b/projects/libreboot-release/install/libreboot-release
index 97f385df..08c4d64b 100644
--- a/projects/libreboot-release/install/libreboot-release
+++ b/projects/libreboot-release/install/libreboot-release
@@ -22,8 +22,8 @@ SYSTEMS="systems"
IMAGES="images"
TOOLS="tools"
-TAR_XZ="tar.xz"
-SHA256SUM="sha256sum"
+ARCHIVE="tar.xz"
+CHECKSUM="sha256sum"
ASC="asc"
usage() {
@@ -66,15 +66,15 @@ download() {
directory="$directory-$part"
fi
- path="$root/$prefix/$directory/$project.$TAR_XZ"
- url="$DOWNLOAD_URL/$prefix/$directory/$project.$TAR_XZ"
+ path="$root/$prefix/$directory/$project.$ARCHIVE"
+ url="$DOWNLOAD_URL/$prefix/$directory/$project.$ARCHIVE"
if wget --quiet --spider "$url"
then
mkdir -p "$( dirname "$path" )"
wget -O "$path" "$url"
- wget -O "$path.$SHA256SUM" "$url.$SHA256SUM"
- wget -O "$path.$ASC" "$url.$ASC"
+ wget -O "$path.$CHECKSUM" "$url.$CHECKSUM"
+ wget -O "$path.$DSIG" "$url.$DSIG"
printf '\n%s\n' "Downloaded $project"
@@ -92,15 +92,15 @@ download() {
sources() {
local project=$1
- local url="$DOWNLOAD_URL/$SOURCES/$project/$project.$TAR_XZ"
- local path="$root/$SOURCES/$project/$project.$TAR_XZ"
+ local url="$DOWNLOAD_URL/$SOURCES/$project/$project.$ARCHIVE"
+ local path="$root/$SOURCES/$project/$project.$ARCHIVE"
if wget --quiet --spider "$url"
then
mkdir -p "$( dirname "$path" )"
wget -O "$path" "$url"
- wget -O "$path.$SHA256SUM" "$url.$SHA256SUM"
- wget -O "$path.$ASC" "$url.$ASC"
+ wget -O "$path.$CHECKSUM" "$url.$CHECKSUM"
+ wget -O "$path.$DSIG" "$url.$DSIG"
printf '\n%s\n' "Downloaded $project sources"
else
@@ -136,21 +136,21 @@ verify() {
directory="$directory-$part"
fi
- path="$root/$prefix/$directory/$project.$TAR_XZ"
+ path="$root/$prefix/$directory/$project.$ARCHIVE"
if ! [ -f "$path" ]
then
continue
fi
- checksum_path="$path.$SHA256SUM"
- signature_path="$path.$ASC"
+ checksum_path="$path.$CHECKSUM"
+ signature_path="$path.$DSIG"
if [ -f "$checksum_path" ]
then
(
cd "$( dirname "$path" )"
- sha256sum -c "$project.$TAR_XZ.$SHA256SUM"
+ sha256sum -c "$project.$ARCHIVE.$CHECKSUM"
)
else
printf '%s\n' "Could not verify $project checksum!" >&2
@@ -200,7 +200,7 @@ extract() {
directory="$directory-$part"
fi
- path="$root/$prefix/$directory/$project.$TAR_XZ"
+ path="$root/$prefix/$directory/$project.$ARCHIVE"
if ! [ -f "$path" ]
then