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
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 3d4ed12b524abe10b11111b18494ddb7598a6ac327585cb2c0f739119fd4717e
User & Date: geraint@users.sourceforge.net on 2004-09-10 21:05:15.000
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: 0b26d0f38a 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: 3d4ed12b52 user: geraint@users.sourceforge.net tags: origin/master, trunk
2004-09-09
23:15:40
Typo: missing $ in front of variable names. check-in: 119443cd8f user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes
13
14
15
16
17
18
19



20
21
22
23
24
25
26
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
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 ]