mirror of https://github.com/ecmwf/eccodes.git
Remove p4 edit commands; git does not need them
This commit is contained in:
parent
57ced19b11
commit
f736b6e63e
|
@ -3,17 +3,17 @@
|
|||
|
||||
grib_errors.c : grib_errors.txt errors.pl
|
||||
./errors.pl
|
||||
cmp grib_errors.c grib_errors.c.new || (p4 edit grib_errors.c ; cp grib_errors.c.new grib_errors.c)
|
||||
cmp grib_api.h grib_api.h.new || (p4 edit grib_api.h ; cp grib_api.h.new grib_api.h)
|
||||
cmp ../fortran/grib_api_constants.h grib_api_constants.h.new || (p4 edit ../fortran/grib_api_constants.h ; cp grib_api_constants.h.new ../fortran/grib_api_constants.h)
|
||||
cmp ../python/grib_errors.h grib_errors.h.new || (p4 edit ../python/grib_errors.h ; cp grib_errors.h.new ../python/grib_errors.h)
|
||||
cmp grib_errors.c grib_errors.c.new || (cp grib_errors.c.new grib_errors.c)
|
||||
cmp grib_api.h grib_api.h.new || (cp grib_api.h.new grib_api.h)
|
||||
cmp ../fortran/grib_api_constants.h grib_api_constants.h.new || (cp grib_api_constants.h.new ../fortran/grib_api_constants.h)
|
||||
cmp ../python/grib_errors.h grib_errors.h.new || (cp grib_errors.h.new ../python/grib_errors.h)
|
||||
|
||||
|
||||
proto:;-p4 edit grib_api_prototypes.h;mkptypes -A $(libgrib_api_a_prototypes) $(libgrib_api_extra_prototypes) > grib_api_prototypes.h
|
||||
proto:;-chmod +w grib_api_prototypes.h;mkptypes -A $(libgrib_api_a_prototypes) $(libgrib_api_extra_prototypes) > grib_api_prototypes.h
|
||||
test:all;(cd ../tests; make tests)
|
||||
|
||||
templates:
|
||||
-p4 edit grib_templates.h
|
||||
-chmod +wgrib_templates.h
|
||||
./grib2c.pl ../templates/*.grib
|
||||
|
||||
grib_lex.c : gribl.l grib_yacc.h
|
||||
|
|
|
@ -13,7 +13,6 @@ use Data::Dumper;
|
|||
my $name;
|
||||
my %entries;
|
||||
|
||||
system("p4 edit grib_templates.h");
|
||||
open(OUT,">grib_templates.h") or "die grib_templates.h: $!";
|
||||
print OUT "/* This file is automatically generated by $0, do not edit */\n\n";
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ EOF
|
|||
|
||||
cat grib_accessor_factory_hash_list | sed 's/\/\*/#/g' >> accessor_class_list.gperf
|
||||
|
||||
p4 edit grib_accessor_classes_hash.c
|
||||
# editing grib_accessor_classes_hash.c
|
||||
|
||||
gperf -W classes -t -G -H grib_accessor_classes_get_id -N grib_accessor_classes_hash -m 1 -j 1 accessor_class_list.gperf | sed s/__inline//g | sed s/inline//g > grib_accessor_classes_hash.c
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ foreach $name ( @ARGV )
|
|||
if(compare_text("$name.tmp",$name))
|
||||
{
|
||||
print "UPDATING file $name\n";
|
||||
system("p4 edit $name") unless(-w $name);
|
||||
system("chmod +w $name") unless(-w $name);
|
||||
cp($name,"$name.old") or die "cp($name,$name.old): $!";
|
||||
cp("$name.tmp",$name) or die "cp($name.tmp,$name): $!";
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ EOF
|
|||
if(-f $file)
|
||||
{
|
||||
local $_;
|
||||
system("p4 edit $file") unless(-w $file);
|
||||
system("chmmod +w $file") unless(-w $file);
|
||||
open(F,"<$file") or die "$file: $!";
|
||||
|
||||
while(<F>)
|
||||
|
|
|
@ -7,7 +7,7 @@ cd ../tests
|
|||
|
||||
cd ../src
|
||||
|
||||
p4 edit keys grib_hash_keys.c
|
||||
# Editing keys grib_hash_keys.c
|
||||
|
||||
gperf -I -t -G -H hash_keys -N grib_keys_hash_get -m 3 ../tests/keys | sed s/__inline//g | sed s/inline//g > grib_hash_keys.c
|
||||
|
||||
|
|
Loading…
Reference in New Issue