mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 16:44:50 +00:00
added build bootstrap files for *nix and DOS
This commit is contained in:
parent
49c9fef4df
commit
00e8822809
2 changed files with 40 additions and 0 deletions
20
build.bat
Normal file
20
build.bat
Normal file
|
@ -0,0 +1,20 @@
|
|||
@echo off
|
||||
|
||||
echo.
|
||||
echo ____ _ ______ __
|
||||
echo / __ \(_) _____ / / __/__ ____/ /
|
||||
echo / /_/ / / ^|/_/ _ \/ / /_/ _ \/ __ /
|
||||
echo / ____/ /^> ^</ __/ / __/ __/ /_/ /
|
||||
echo /_/ /_/_/^|_^|\___/_/_/ \___/\__,_/
|
||||
echo ------------- build process -----------
|
||||
echo.
|
||||
|
||||
WHERE php >nul 2>nul
|
||||
IF %ERRORLEVEL% NEQ 0 (
|
||||
echo !!! PHP command-line executable was not found in the current path.
|
||||
echo It is required in order to build Pixelfed.
|
||||
echo.
|
||||
exit 255
|
||||
)
|
||||
|
||||
php ./vendor/phing/phing/bin/phing %*
|
20
build.sh
Executable file
20
build.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo ""
|
||||
echo " ____ _ ______ __ "
|
||||
echo " / __ \(_) _____ / / __/__ ____/ / "
|
||||
echo " / /_/ / / |/_/ _ \/ / /_/ _ \/ __ / "
|
||||
echo " / ____/ /> </ __/ / __/ __/ /_/ / "
|
||||
echo " /_/ /_/_/|_|\___/_/_/ \___/\__,_/ "
|
||||
echo " ------------- build process ----------- "
|
||||
echo ""
|
||||
|
||||
if [ ! -P "php" ]
|
||||
then
|
||||
echo "!!! PHP command-line executable was not found in the current path."
|
||||
echo " It is required in order to build Pixelfed."
|
||||
echo ""
|
||||
exit 255
|
||||
fi
|
||||
|
||||
php ./vendor/phing/phing/bin/phing "$@"
|
Loading…
Reference in a new issue