Overview
Comment:Ensure that the system exists before proceeding.
This should stop me from copying my home directory to MTT_work.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: d2d3d9eba8971bfc815e0a37e59567641f3d54f363d9deeecbdf6c362773e0b7
User & Date: geraint@users.sourceforge.net on 2004-09-10 21:05:15
Other Links: branch diff | manifest | tags
Context
2004-09-12
22:27:27
Appended 't' to fopen mode string to open in text mode. check-in: 1459f7b012 user: geraint@users.sourceforge.net tags: origin/master, trunk
2004-09-10
21:05:15
Ensure that the system exists before proceeding.
This should stop me from copying my home directory to MTT_work.
check-in: d2d3d9eba8 user: geraint@users.sourceforge.net tags: origin/master, trunk
2004-09-09
23:15:40
Typo: missing $ in front of variable names. check-in: e8996ce9e1 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [0278e5c7e6] to [a9420b2732].

13
14
15
16
17
18
19



20
21
22
23
24
25
26
# Copyright (C) 2001 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$



## Revision 1.402  2004/09/03 08:35:27  geraint
## Copies Perl CRs to an mtt subdirectory (=> mtt:: workspace).
##
## Revision 1.401  2004/09/02 22:04:06  geraint
## Passes ${use_reduce} to mtt_make_sympar so that it can decide
## if to issue warnings about Reduce reserved words
##







>
>
>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (C) 2001 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.403  2004/09/07 20:38:44  geraint
## Applies CRs before creating sese.make to avoid Circular dependencies.
##
## Revision 1.402  2004/09/03 08:35:27  geraint
## Copies Perl CRs to an mtt subdirectory (=> mtt:: workspace).
##
## Revision 1.401  2004/09/02 22:04:06  geraint
## Passes ${use_reduce} to mtt_make_sympar so that it can decide
## if to issue warnings about Reduce reserved words
##
2294
2295
2296
2297
2298
2299
2300








2301
2302
2303
2304
2305
2306
2307
     touch ${read_file_name}
    done
   done
fi

# Tidy mode - operate in the directory MTT-work
if [[ "$tidy" = "tidy" && "$level" = "0" ]]; then








   mkdir -p MTT_work
   valid_files=`ls | grep -v '^MTT'`
   ##cp -p -u  Makefile Make *.* .* MTT_work  2>/dev/null
   cp -p -u -R ${valid_files} MTT_work  2>/dev/null

   # Go to MTT_work
   cd MTT_work







>
>
>
>
>
>
>
>







2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
     touch ${read_file_name}
    done
   done
fi

# Tidy mode - operate in the directory MTT-work
if [[ "$tidy" = "tidy" && "$level" = "0" ]]; then
    # make sure that a system exists in this directory
    if [ "${sys}_${rep}.${lang}" != "${sys}_abg.dia" ] && [ "${sys}_${rep}.${lang}" != "${sys}_abg.fig" ]; then
	nabgs=`ls ${sys}_abg.* 2>/dev/null | wc -l`
	if [ $nabgs -eq 0 ]; then
	    echo "MTT Error: System $sys does not exist"
	    exit -1;
	fi
    fi
   mkdir -p MTT_work
   valid_files=`ls | grep -v '^MTT'`
   ##cp -p -u  Makefile Make *.* .* MTT_work  2>/dev/null
   cp -p -u -R ${valid_files} MTT_work  2>/dev/null

   # Go to MTT_work
   cd MTT_work


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