Skip to content

Commit e525ce3

Browse files
committed
Move distribution generator script to scripts/dev
The more proper place for shell scripts dedicated for development, and releasing PHP should be the scripts/dev directory. Having a cleaner root project directory helps find the main README.md and files relevant to install PHP. These scripts are also used by the release managers mostly who create release packages and aren't used often by the majority of developers working on and installing PHP.
1 parent 78ab79b commit e525ce3

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.RELEASE_PROCESS

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Commit the changes to the main branch.
9090
``git push origin {main branch}``
9191
``git push origin {release branch}``
9292

93-
12. run: ``PHPROOT=. ./makedist 5.4.2RC2``, this will export the tree, create configure
93+
12. run: ``PHPROOT=. ./scripts/dev/makedist 5.4.2RC2``, this will export the tree, create configure
9494
and build three tarballs (gz, bz2 and xz).
9595

9696
13. run ``scripts/dev/gen_verify_stub <version> [identity]``, this will sign the tarballs
@@ -184,7 +184,7 @@ credits files in ext/standard.
184184

185185
8. Push the tag f.e. "``git push origin php-5.4.1``"
186186

187-
9. run: ``PHPROOT=. ./makedist php 5.4.1``, this will export the tag, create configure
187+
9. run: ``PHPROOT=. ./scripts/dev/makedist php 5.4.1``, this will export the tag, create configure
188188
and build three tarballs (gz, bz2 and xz).
189189
Check if the pear files are updated (phar).
190190
On some systems the behavior of GNU tar can default to produce POSIX compliant archives

genfiles renamed to scripts/dev/genfiles

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RE2C_FLAGS="-i"
4545
original_path=`pwd`
4646

4747
# Project root directory
48-
project_root=`CDPATH= cd -- "$(dirname -- "$0")" && pwd -P`
48+
project_root=`CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P`
4949
cd $project_root
5050

5151
echo "Generating Zend parser and lexer files"

makedist renamed to scripts/dev/makedist

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
# Written by Stig Bakken <[email protected]> 1997-05-28.
1919
# Adapted to git by Stanislav Malyshev <[email protected]>
2020

21+
# Go to project root directory.
22+
cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)
2123

2224
if test "$#" != "1"; then
2325
echo "Usage: makedist <version>" >&2
@@ -94,7 +96,7 @@ set -x
9496
# when a user runs buildconf in the distribution.
9597
rm -f buildmk.stamp
9698

97-
./genfiles
99+
./scripts/dev/genfiles
98100

99101
# now restore our versions of libtool-generated files
100102
for i in $LT_TARGETS; do

0 commit comments

Comments
 (0)