aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen-padding
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-01-06 18:14:30 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-01-06 18:15:03 +0200
commitf0eba93472e0afecc57180fc0d638eeef8e6f3c6 (patch)
tree13fe81d4dda80e6917f924bb94f47651eccd5a92 /scripts/gen-padding
parent513a8d20beeacb3a7fc2c3c140d014f7fb25cd6f (diff)
downloadkmi-f0eba93472e0afecc57180fc0d638eeef8e6f3c6.tar.gz
kmi-f0eba93472e0afecc57180fc0d638eeef8e6f3c6.zip
Added lint rule to Makefile
+ Runs a syntax check on all files of the selected arch
Diffstat (limited to 'scripts/gen-padding')
-rwxr-xr-xscripts/gen-padding9
1 files changed, 0 insertions, 9 deletions
diff --git a/scripts/gen-padding b/scripts/gen-padding
deleted file mode 100755
index 22c12f9..0000000
--- a/scripts/gen-padding
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-align="$1"
-filename="$2"
-
-filesize=$(stat -c "%s" "${filename}")
-padsize=$(echo "${filesize}" | awk "{print ${align} - (\$1 % ${align})}")
-
-dd if=/dev/zero ibs=1 count="${padsize}" >> "${filename}"