src: move all files (again)

Make "src" the implicit "/usr/local" so that nobody can
sneak in weird files in the base file system or potentially
overwrite them.

This is the last time, I swear...  :)
This commit is contained in:
Franco Fichtner 2014-12-10 16:41:13 +01:00
parent 80df5b07ba
commit 727453c076
3133 changed files with 8 additions and 8 deletions

View File

@ -1,27 +1,27 @@
all:
mount:
mount_unionfs ${.CURDIR}/usr/local /usr/local
mount_unionfs ${.CURDIR}/src /usr/local
umount:
umount -f "<above>:${.CURDIR}/usr/local"
umount -f "<above>:${.CURDIR}/src"
install:
mkdir -p ${DESTDIR}/usr/local
cp -r ${.CURDIR}/usr/local/* ${DESTDIR}/usr/local
cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local
lint:
find ${.CURDIR}/usr/local -name "*.class" -print0 | xargs -0 -n1 php -l
find ${.CURDIR}/usr/local -name "*.inc" -print0 | xargs -0 -n1 php -l
find ${.CURDIR}/usr/local -name "*.php" -print0 | xargs -0 -n1 php -l
find ${.CURDIR}/src -name "*.class" -print0 | xargs -0 -n1 php -l
find ${.CURDIR}/src -name "*.inc" -print0 | xargs -0 -n1 php -l
find ${.CURDIR}/src -name "*.php" -print0 | xargs -0 -n1 php -l
sweep:
find ${.CURDIR}/usr/local ! -name "*.min.*" \
find ${.CURDIR}/src ! -name "*.min.*" \
! -name "*.map" -type f -print0 | \
xargs -0 -n1 scripts/cleanfile
setup:
${.CURDIR}/usr/local/etc/rc.php_ini_setup
${.CURDIR}/src/etc/rc.php_ini_setup
clean:
git reset --hard HEAD && git clean -xdqf .

Some files were not shown because too many files have changed in this diff Show More