From: Tormod Volden Date: Tue, 14 Apr 2015 21:23:16 +0000 (+0200) Subject: Add -X reverse endian option to build-filesystem script X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ed6cf66c4fd825455432095453dbc0db8cb13bc7;p=FUZIX.git Add -X reverse endian option to build-filesystem script Signed-off-by: Tormod Volden --- diff --git a/Standalone/filesystem-src/build-filesystem b/Standalone/filesystem-src/build-filesystem index ef72b812..1f3a653e 100755 --- a/Standalone/filesystem-src/build-filesystem +++ b/Standalone/filesystem-src/build-filesystem @@ -1,5 +1,10 @@ #!/bin/sh +endian= +if [ "$1" = "-X" ]; then + shift + endian=-X +fi if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then echo "Syntax: $0 filename isize bsize" echo "" @@ -8,6 +13,6 @@ if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then exit 1 fi -../mkfs $1 $2 $3 +../mkfs $endian $1 $2 $3 ../ucp $1 < ucp-script.txt ../fsck $1