Overview
Comment:copy utility split into two:
copy: copies examples (copies the entire directory)
compcopy: (just used internally) copies components.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 50c557c1cd6ed53432f173b2d6bbde9f70fac5d0455199801518fc74cc99c372
User & Date: gawthrop@users.sourceforge.net on 1997-09-11 08:21:08
Other Links: branch diff | manifest | tags
Context
1997-09-11
08:37:29
Added description check-in: 27c4963753 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:21:08
copy utility split into two:
copy: copies examples (copies the entire directory)
compcopy: (just used internally) copies components.
check-in: 50c557c1cd user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1997-09-04
09:49:19
Initial revision check-in: 5ad7a99a95 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt from [86ee7ba83e] to [fd403a7672].

10
11
12
13
14
15
16



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







+
+
+







# Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996.

###############################################################
## Version control history
###############################################################
## $Header$
## $Log$
## Revision 1.90  1997/08/30 19:35:39  peterg
## Added date to mtt line
##
## Revision 1.89  1997/08/26 15:20:25  peterg
## Added explicit evaluation of report representations
## Version now 2.5++
##
## Revision 1.88  1997/08/25 07:51:47  peterg
## Version 2.5.
##
485
486
487
488
489
490
491
492

493



















494
495
496
497
498
499
500
501
502
503

504
505

506
507
508
509
510
511
512
488
489
490
491
492
493
494

495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524

525
526

527
528
529
530
531
532
533
534







-
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+









-
+

-
+







if [ "$2" = "abg" ] && [ "$3" = "fig" ]; then
  mtt_check_var "$FIG" FIG
  echo Editing $1_$2.$3
  ($FIG $1_$2.$3; cp $1_abg.fig $1_$1_abg.fig) &
  exit
fi

# Copy systems from the library
# Copy systems from the example library
if [ "$1" = "copy" ]; then
  # check that its not here already
  file_exists=`ls $2 2> /dev/null`
  if [ -n "$file_exists" ]; then
    if [ "$quiet" != "quiet" ]; then    
      echo Directory $2 exists already - no action taken
    fi
  else
    path_name=$3
    if [ -z "$path_name" ]; then
      path_name=$MTTPATH/lib/examples
    fi
    echo Copying system $2 to here from $path_name into directory $2
    find $path_name -name "$2" -exec cp -r {} . \; 
  fi
  exit
fi

# Copy components from the library
if [ "$1" = "compcopy" ]; then
  # check that its not here already
  file_exists=`ls $2_abg.fig 2> /dev/null`
  if [ -n "$file_exists" ]; then
    if [ "$quiet" != "quiet" ]; then    
      echo $2_abg.fig exists already - no action taken
    fi
  else
    path_name=$3
    if [ -z "$path_name" ]; then
      path_name=$MTTPATH/lib/examples
      path_name=$MTTPATH/lib/comp/compound
    fi
    echo Copying system $2 to here from $3
    echo Copying component $2 from $path_name
    find $path_name -name "$2_*.*" -exec cp {} . \;
  fi
  exit
fi

# Copy CRs from the library
if [ "$1" = "crcopy" ]; then
626
627
628
629
630
631
632
633

634
635
636
637
638
639
640
648
649
650
651
652
653
654

655
656
657
658
659
660
661
662







-
+








# Cancel implicit rules I don't want
%.dvi: %.tex

# If level>0, try and get subsystem files
ifneq ("$level","0")
$1_abg.fig:
	mtt -q copy $1 $MTTPATH/lib/comp/compound
	mtt -q compcopy $1 
endif


# Create an arg file if it doesn't exist
$1_args.m:
	touch $1_args.m


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