setup-build-helpers 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. # Copyright 2015-2016 bill-auger <https://github.com/bill-auger/av-caster/issues>
  3. #
  4. # This file is part of the AvCaster program.
  5. #
  6. # AvCaster is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License version 3
  8. # as published by the Free Software Foundation.
  9. #
  10. # AvCaster is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with AvCaster. If not, see <http://www.gnu.org/licenses/>.
  17. SCRIPTS_DIR="$(dirname "$(readlink -f "$0")")"
  18. PROJECT_DIR=$SCRIPTS_DIR/../../
  19. BASE_INC_DIR=/usr/include
  20. LIBIRC_INC_DIR=$BASE_INC_DIR/libircclient/
  21. cp $SCRIPTS_DIR/cppcheck-filtered $PROJECT_DIR/ ; chmod a+x $PROJECT_DIR/cppcheck-filtered ;
  22. cp $SCRIPTS_DIR/dbg $PROJECT_DIR/ ; chmod a+x $PROJECT_DIR/dbg ;
  23. cp $SCRIPTS_DIR/mk $PROJECT_DIR/ ; chmod a+x $PROJECT_DIR/mk ;
  24. cp $SCRIPTS_DIR/mk-clean $PROJECT_DIR/ ; chmod a+x $PROJECT_DIR/mk-clean ;
  25. cp $SCRIPTS_DIR/mk-reset $PROJECT_DIR/ ; chmod a+x $PROJECT_DIR/mk-reset ;
  26. echo "copied helper scripts to the project root directory - they can be now run from there"
  27. exit # TODO: chat feature next version?
  28. if [ ! -d $LIBIRC_INC_DIR ] ; then
  29. sudo mkdir $LIBIRC_INC_DIR
  30. sudo cp $BASE_INC_DIR/libircclient.h $LIBIRC_INC_DIR
  31. sudo cp $BASE_INC_DIR/libirc_errors.h $LIBIRC_INC_DIR
  32. sudo cp $BASE_INC_DIR/libirc_events.h $LIBIRC_INC_DIR
  33. sudo cp $BASE_INC_DIR/libirc_options.h $LIBIRC_INC_DIR
  34. sudo cp $BASE_INC_DIR/libirc_rfcnumeric.h $LIBIRC_INC_DIR
  35. echo "copied libircclient headers to $LIBIRC_INC_DIR"
  36. fi