aboutsummaryrefslogtreecommitdiff
path: root/projects/libreboot-sources/install
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2017-06-23 18:02:49 +0000
committerGogs <gogitservice@gmail.com>2017-06-23 18:02:49 +0000
commit4ece4e4999cf2bfcd6b0fb8e67543b299d7c0cd8 (patch)
tree889014b8974bb439a7a665ce991036ea5d41fd01 /projects/libreboot-sources/install
parentbdb6c0e643f9d4b4ce3e0ceba113c04bd45d5116 (diff)
parent4e50a92041c9f30deef1a32c995b9d5634cbed22 (diff)
downloadlibrebootfr-4ece4e4999cf2bfcd6b0fb8e67543b299d7c0cd8.tar.gz
librebootfr-4ece4e4999cf2bfcd6b0fb8e67543b299d7c0cd8.zip
Merge branch 'printf-cleanup' of kragle/libreboot into master
Diffstat (limited to 'projects/libreboot-sources/install')
-rwxr-xr-xprojects/libreboot-sources/install/libreboot-sources22
1 files changed, 11 insertions, 11 deletions
diff --git a/projects/libreboot-sources/install/libreboot-sources b/projects/libreboot-sources/install/libreboot-sources
index 9d8536ef..e85d3c22 100755
--- a/projects/libreboot-sources/install/libreboot-sources
+++ b/projects/libreboot-sources/install/libreboot-sources
@@ -21,15 +21,15 @@ SOURCES="sources"
TAR_XZ="tar.xz"
usage() {
- env printf '%s\n' "$executable [action] [sources path] (extract path)" >&2
+ printf '%s\n' "$executable [action] [sources path] (extract path)" >&2
- env printf '\n%s\n' 'Actions:' >&2
- env printf '%s\n' ' extract - Extract build system sources' >&2
- env printf '%s\n' ' copy - Copy projects sources' >&2
- env printf '%s\n' ' prepare - Extract and copy sources' >&2
+ printf '\n%s\n' 'Actions:' >&2
+ printf '%s\n' ' extract - Extract build system sources' >&2
+ printf '%s\n' ' copy - Copy projects sources' >&2
+ printf '%s\n' ' prepare - Extract and copy sources' >&2
- env printf '\n%s\n' ' When no extract path is provided, sources are extracted in the current'
- env printf '%s\n' ' directory.'
+ printf '\n%s\n' ' When no extract path is provided, sources are extracted in the current'
+ printf '%s\n' ' directory.'
}
extract() {
@@ -49,14 +49,14 @@ extract() {
archive=$( find $sources_path -name "$BUILD_SYSTEM-sources.$TAR_XZ" || true )
if [ -z "$archive" ]
then
- env printf '%s\n' "Finding $BUILD_SYSTEM sources archive failed!" >&2
+ printf '%s\n' "Finding $BUILD_SYSTEM sources archive failed!" >&2
usage
exit 1
fi
tar -xf "$archive" -ps -C "$extract_path"
- env printf '\n%s\n' "Extracted $BUILD_SYSTEM sources from $sources_path to $extract_path"
+ printf '\n%s\n' "Extracted $BUILD_SYSTEM sources from $sources_path to $extract_path"
}
copy() {
@@ -83,7 +83,7 @@ copy() {
cp "$file" "$build_system_sources_path"
done
- env printf '\n%s\n' "Copied $BUILD_SYSTEM sources from $sources_path to $extract_path"
+ printf '\n%s\n' "Copied $BUILD_SYSTEM sources from $sources_path to $extract_path"
}
requirements() {
@@ -96,7 +96,7 @@ requirements() {
if [ -z "$requirement_path" ]
then
- env printf '%s\n' "Missing requirement: $requirement" >&2
+ printf '%s\n' "Missing requirement: $requirement" >&2
exit 1
fi
done