1*e4a36f41SAndroid Build Coastguard Worker#!/bin/bash 2*e4a36f41SAndroid Build Coastguard Worker 3*e4a36f41SAndroid Build Coastguard WorkerRESULT=0 4*e4a36f41SAndroid Build Coastguard Worker 5*e4a36f41SAndroid Build Coastguard Workerfor i in "$@"; do 6*e4a36f41SAndroid Build Coastguard Worker a="`tail -c 1 "$i"`" 7*e4a36f41SAndroid Build Coastguard Worker if [ "$a" != "" ]; then 8*e4a36f41SAndroid Build Coastguard Worker echo "$i does not have a trailing newline" 1>&2 9*e4a36f41SAndroid Build Coastguard Worker RESULT=-1 10*e4a36f41SAndroid Build Coastguard Worker fi 11*e4a36f41SAndroid Build Coastguard Workerdone 12*e4a36f41SAndroid Build Coastguard Worker 13*e4a36f41SAndroid Build Coastguard Workerexit $RESULT 14