1f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project#!/usr/bin/perl 2f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project# 3f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project# Splits the list of files and outputs for makefile type files 4f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project# wrapped at 80 chars 5f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project# 6f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project# Tom St Denis 7f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project@a = split(" ", $ARGV[1]); 8f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project$b = "$ARGV[0]="; 9f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project$len = length($b); 10f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Projectprint $b; 11f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Projectforeach my $obj (@a) { 12f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project $len = $len + length($obj); 13f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project $obj =~ s/\*/\$/; 14f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project if ($len > 100) { 15f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project printf "\\\n"; 16f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project $len = length($obj); 17f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project } 18f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project print "$obj "; 19f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project} 20f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Projectif ($ARGV[0] eq "HEADERS") { print "testprof/tomcrypt_test.h"; } 21f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project 22f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Projectprint "\n\n"; 23f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project 24f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project# $Source: /cvs/libtom/libtomcrypt/parsenames.pl,v $ 25f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project# $Revision: 1.3 $ 26f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project# $Date: 2005/05/05 14:49:27 $ 27