summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-06 21:39:29 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-02-16 16:58:48 +0100
commite0c88039b6d88b03a91dec34d69b2d776860135d (patch)
treedb542d7f9c68fe855c6c262b35fa1d84c12b7234 /scripts
parent6662fb5c8fabb1611baf852d1b62a956103bd56d (diff)
downloadphp-git-e0c88039b6d88b03a91dec34d69b2d776860135d.tar.gz
Move some scripts from root directory to scripts/dev/
At the time of this commit, there is a dedicated folder for development related tools and such scripts might fit better there to not bloat the project root directory too much. Move snapshot to scripts/dev/snapshot
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dev/snapshot7
-rwxr-xr-xscripts/dev/vcsclean7
2 files changed, 14 insertions, 0 deletions
diff --git a/scripts/dev/snapshot b/scripts/dev/snapshot
new file mode 100755
index 0000000000..f8e13ef9d9
--- /dev/null
+++ b/scripts/dev/snapshot
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+if test -n "$1"; then
+ flags="DISTNAME=$1"
+fi
+
+${MAKE:-make} $flags -f build/build.mk snapshot
diff --git a/scripts/dev/vcsclean b/scripts/dev/vcsclean
new file mode 100755
index 0000000000..fc7fc2f805
--- /dev/null
+++ b/scripts/dev/vcsclean
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+if test -d '.git' -o -f '.git'; then
+ ${MAKE:-make} -f build/build.mk gitclean-work
+else
+ echo "Can't figure out your VCS, not cleaning."
+fi