]> granicus.if.org Git - php/commitdiff
Move distribution generator script to scripts/dev
authorPeter Kokot <peterkokot@gmail.com>
Sun, 24 Feb 2019 12:01:57 +0000 (13:01 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Sat, 16 Mar 2019 22:51:05 +0000 (23:51 +0100)
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.

README.RELEASE_PROCESS
scripts/dev/genfiles [moved from genfiles with 98% similarity]
scripts/dev/makedist [moved from makedist with 97% similarity]

index cff4686d264fbb0830b94ba85d6dde55a73f59c3..b50cac48432db1cfbbcf57ca47530262bd2a7b83 100644 (file)
@@ -90,7 +90,7 @@ Commit the changes to the main branch.
 ``git push origin {main branch}``
 ``git push origin {release branch}``
 
-12. run: ``PHPROOT=. ./makedist 5.4.2RC2``, this will export the tree, create configure
+12. run: ``PHPROOT=. ./scripts/dev/makedist 5.4.2RC2``, this will export the tree, create configure
 and build three tarballs (gz, bz2 and xz).
 
 13. run ``scripts/dev/gen_verify_stub <version> [identity]``, this will sign the tarballs
@@ -184,7 +184,7 @@ credits files in ext/standard.
 
 8. Push the tag f.e. "``git push origin php-5.4.1``"
 
-9. run: ``PHPROOT=. ./makedist php 5.4.1``, this will export the tag, create configure
+9. run: ``PHPROOT=. ./scripts/dev/makedist php 5.4.1``, this will export the tag, create configure
 and build three tarballs (gz, bz2 and xz).
    Check if the pear files are updated (phar).
    On some systems the behavior of GNU tar can default to produce POSIX compliant archives
similarity index 98%
rename from genfiles
rename to scripts/dev/genfiles
index 3875f91c44fea1f7410b77995a991f64f0f6f88b..6384225749dd1ce53a04e2fd2eea11f28f458376 100755 (executable)
--- a/genfiles
@@ -45,7 +45,7 @@ RE2C_FLAGS="-i"
 original_path=`pwd`
 
 # Project root directory
-project_root=`CDPATH= cd -- "$(dirname -- "$0")" && pwd -P`
+project_root=`CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P`
 cd $project_root
 
 echo "Generating Zend parser and lexer files"
similarity index 97%
rename from makedist
rename to scripts/dev/makedist
index 5f83fd62846ac1dd7e7888d3436ff496e86b157c..84c2facba8822fa7a68095e878f74cd0d18518b3 100755 (executable)
--- a/makedist
@@ -18,6 +18,8 @@
 # Written by Stig Bakken <ssb@guardian.no> 1997-05-28.
 # Adapted to git by Stanislav Malyshev <stas@php.net>
 
+# Go to project root directory.
+cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P)
 
 if test "$#" != "1"; then
     echo "Usage: makedist <version>" >&2
@@ -94,7 +96,7 @@ set -x
 # when a user runs buildconf in the distribution.
 rm -f buildmk.stamp
 
-./genfiles
+./scripts/dev/genfiles
 
 # now restore our versions of libtool-generated files
 for i in $LT_TARGETS; do