Debian Codegraph @

src/fgpconfig/renumber-files

raw
1 #!/usr/bin/env bash
2 # $Id$
3 # --------------------------------------------------------------------------
4 #
5 # //===// //===== //===// // // //===//
6 # // // // // // // // // //
7 # //===// //===== //===// // // //===<<
8 # // \\ // // // // // //
9 # // \\ =====// // //===== // //===// Version III
10 #
11 # ------------- An Efficient RSerPool Prototype Implementation -------------
12 #
13 # Copyright (C) 2002-2026 by Thomas Dreibholz
14 #
15 # This program is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU General Public License as published by
17 # the Free Software Foundation, either version 3 of the License, or
18 # (at your option) any later version.
19 #
20 # This program is distributed in the hope that it will be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 # GNU General Public License for more details.
24 #
25 # You should have received a copy of the GNU General Public License
26 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27 #
28 # Contact: [email protected]
29
30 FILES=`ls *.fsf`
31
32 number=1
33 for filename in $FILES ; do
34 newNumber="`printf "%03d" "$number"`"
35 newName="input-$newNumber.fsf"
36 echo "svn move $filename input-$newNumber.fsf"
37 svn --force move $filename $newName
38 let number=$number+1
39 done