X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=scripts%2Fmkcompile_h;h=23dbad80cce9e16ce885d61163a5f79c1ca2b981;hb=7845bc3e132605e3e8a1f37748e29281164b65f5;hp=f060763c0c6a0c4304c2da5e473e7d0b59c58da5;hpb=9c3049c02c6142e166c9472237f1f60d86153682;p=safe%2Fjmp%2Flinux-2.6 diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index f060763..23dbad8 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h @@ -1,3 +1,5 @@ +#!/bin/sh + TARGET=$1 ARCH=$2 SMP=$3 @@ -12,7 +14,7 @@ vecho() { [ "${quiet}" = "silent_" ] || echo "$@" ; } # So "sudo make install" won't change the "compiled by " # do "compiled by root" -if [ -r $TARGET -a ! -O include/linux/autoconf.h ]; then +if [ -r $TARGET -a ! -O include/generated/autoconf.h ]; then vecho " SKIPPED $TARGET" exit 0 fi @@ -50,7 +52,7 @@ UTS_VERSION="$UTS_VERSION $CONFIG_FLAGS $TIMESTAMP" # Truncate to maximum length UTS_LEN=64 -UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/" +UTS_TRUNCATE="cut -b -$UTS_LEN" # Generate a temporary compile.h