mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
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:
parent
80df5b07ba
commit
727453c076
16
Makefile
16
Makefile
@ -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
Loading…
x
Reference in New Issue
Block a user