diff options
author | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-08-04 18:36:38 +0000 |
---|---|---|
committer | dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-08-04 18:36:38 +0000 |
commit | 02c5ac9c67be1e3ac1c0203f79da1e5489736aa0 (patch) | |
tree | a7ef599534c89efa04cf7cbfbace08d3764788c3 /src | |
parent | ca48e3ce662e8160932256c1f877adee3aa3ee4e (diff) |
BUILD : 1.7.4 (310) BUGS : none NOTES : Fixed am script to run indent on src dir if it exists.
git-svn-id: svn://svn.anope.org/anope/trunk@310 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@189 5417fbe8-f217-4b02-8779-1006273d7864
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 |