aboutsummaryrefslogtreecommitdiff
path: root/libs/common
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 /libs/common
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 'libs/common')
-rwxr-xr-xlibs/common14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/common b/libs/common
index 6cd2dfe0..d0fd1203 100755
--- a/libs/common
+++ b/libs/common
@@ -39,9 +39,9 @@ DOTRNDSEED=".rndseed"
DOTVERSION=".version"
DOTREVISION=".revision"
DOTTARFILES=".tarfiles"
-TAR_XZ="tar.xz"
-SHA256SUM="sha256sum"
-ASC="asc"
+ARCHIVE="tar.xz"
+CHECKSUM="sha256sum"
+DSIG="asc"
function_check() {
local function=$1
@@ -93,7 +93,7 @@ path_wildcard_expand() {
file_checksum_create() {
local path=$1
- local checksum_path="$path.$SHA256SUM"
+ local checksum_path="$path.$CHECKSUM"
local name=$( basename "$path" )
local directory_path=$( dirname "$path" )
@@ -106,7 +106,7 @@ file_checksum_create() {
file_checksum_check() {
local path=$1
- local checksum_path="$path.$SHA256SUM"
+ local checksum_path="$path.$CHECKSUM"
local name=$( basename "$path" )
local directory_path=$( dirname "$path" )
@@ -125,7 +125,7 @@ file_checksum_check() {
file_signature_create() {
local path=$1
- local signature_path="$path.$ASC"
+ local signature_path="$path.$DSIG"
if [ -z "$RELEASE_KEY" ]
then
@@ -138,7 +138,7 @@ file_signature_create() {
file_signature_check() {
local path=$1
- local signature_path="$path.$ASC"
+ local signature_path="$path.$DSIG"
if ! [ -f "$signature_path" ]
then