Overview
Comment:Now removes old version after copying
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 65a0ce568c31d6e0bd4595712c6e9ebd04cabad1f11e047c6043fa9acf7ce2c4
User & Date: gawthrop@users.sourceforge.net on 1998-01-06 13:57:39
Other Links: branch diff | manifest | tags
Context
1998-01-06
13:57:59
Initial revision check-in: 50758e2af4 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:57:39
Now removes old version after copying check-in: 65a0ce568c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
13:48:23
Initial revision check-in: b5419e5fdb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt_rename from [c558fe7897] to [ac6d3bf409].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
24
25
26
27







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26




27
28
29
30
31
32
33







+
+
+







-
-
-
-
+
+
+
+
+
+
+
# Copyright (c) P.J.Gawthrop 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
# Revision 1.1  1998/01/06  13:48:23  peterg
# Initial revision
#
###############################################################

old_name=$1
new_name=$2
extension=$3

if ls $old_name$extension > /dev/null 2>&1 
then
    echo Renaming $old_name$extension to $new_name$extension
    sed "s/$old_name/$new_name/g" <$old_name$extension >$new_name$extension
fi
    then
	echo Renaming $old_name$extension to $new_name$extension
	sed "s/$old_name/$new_name/g" <$old_name$extension >$new_name$extension

	rm -f $old_name$extension
    fi


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]