diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/bin/am | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/am b/src/bin/am index 650449437..f9819303b 100755 --- a/src/bin/am +++ b/src/bin/am @@ -376,8 +376,12 @@ NOTES : "; die ("Aborting...\n") unless &getans(); print "*** Running Indent...\n"; - system("indent -kr -nut *.c"); - system("rm -f *~"); + my $prefix="."; + if (-d src) { + $prefix="src"; + } + system("indent -kr -nut $prefix/*.c"); + system("rm -f $prefix/*~"); print "*** Bumping the revision number...\n"; # Re-write the control file |