File tree 2 files changed +8
-19
lines changed
2 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 16
16
},
17
17
"autoload": {
18
18
"psr-4": {
19
- "Google\\Protobuf\\": "php/ src/Google/Protobuf",
20
- "GPBMetadata\\Google\\Protobuf\\": "php/ src/GPBMetadata/Google/Protobuf"
19
+ "Google\\Protobuf\\": "src/Google/Protobuf",
20
+ "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf"
21
21
}
22
22
}
23
23
}
Original file line number Diff line number Diff line change @@ -10,32 +10,21 @@ set -ex
10
10
11
11
VERSION=$1
12
12
13
+ rm -rf protobuf-php
13
14
git clone https://github.com/protocolbuffers/protobuf-php.git
14
- git clone https://github.com/protocolbuffers/protobuf.git
15
15
16
16
# Clean old files
17
- pushd protobuf-php
18
- rm -rf src
19
- popd
20
-
21
- # Checkout the target version
22
- pushd protobuf/php
23
- git checkout -b $VERSION
24
- popd
17
+ rm -rf protobuf-php/src
25
18
26
19
# Copy files
27
- pushd protobuf-php
28
- mv ../ protobuf/ php/src src
29
- mv ../protobuf/php/composer.json.dist composer.json
30
- sed -i ' s| php/src|src|g ' composer.json
20
+ cp -r php/src protobuf-php
21
+ cp php/composer.json.dist protobuf- php/composer.json
22
+
23
+ cd protobuf- php
31
24
git add .
32
25
git commit -m " $VERSION "
33
26
if [ $( git tag -l " $VERSION " ) ]; then
34
27
echo " tag $VERSION already exists"
35
28
else
36
29
git tag " $VERSION "
37
30
fi
38
- popd
39
-
40
- # Clean up
41
- rm -rf protobuf
You can’t perform that action at this time.
0 commit comments