Skip to content

Commit

Permalink
Makefile: Allow clobbering of non-PHP scripts.
Browse files Browse the repository at this point in the history
At some point, the -n (no clobber) flag was added when copying
scripts into the installed scripts directory, but this was really
only intended to prevent clobbering of customizations made to the
sample IRC bot script, not the majority of scripts in general.
The no clobber flag prevented updated versions of shell scripts with
bug fixes from getting installed, so instead allow clobbering of
all script types in use except for PHP scripts.

It remains that many of the shell scripts in the scripts directory
are not particularly useful directly outside of the compilation
process, but for now, no change is being made to prevent any of these
scripts from being installed in the first place.
  • Loading branch information
InterLinked1 committed Oct 9, 2024
1 parent b668d4c commit b4bb34a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ scripts :
@if [ ! -d /var/lib/lbbs/scripts ]; then\
mkdir /var/lib/lbbs/scripts;\
fi
cp -n scripts/* /var/lib/lbbs/scripts
cp scripts/*.sh /var/lib/lbbs/scripts
cp scripts/*.sql /var/lib/lbbs/scripts
cp -n scripts/*.php /var/lib/lbbs/scripts
chmod +x /var/lib/lbbs/scripts/*

templates :
Expand Down

0 comments on commit b4bb34a

Please sign in to comment.