Skip to content
Snippets Groups Projects
Commit 1a81c79d authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Merge branch '198-wolf-license' of...

Merge branch '198-wolf-license' of ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/wolf.git into 198-wolf-license
parents 3de54a33 ea7ff774
No related branches found
No related tags found
1 merge request!427Resolve "Wolf license"
# Pre-requisites about cmake itself
#Start WOLF build
MESSAGE("Starting WOLF CMakeLists ...")
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Pre-requisites about cmake itself
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0005 NEW)
......
LICENSE 0 → 100644
This diff is collapsed.
#!/bin/bash
#options
tmp=false
path=$PWD
recursive=true
license=""
for i in "$@"; do
case $i in
--temp)
tmp=true
shift # past argument=value
;;
--path=*)
path="${i#*=}"
shift # past argument=value
;;
--non-recursive)
recursive=false
shift # past argument=value
;;
--license-file=*)
license="${i#*=}"
shift # past argument=value
;;
*)
# unknown option
;;
esac
done
echo "tmp = ${tmp}"
echo "path = ${path}"
echo "recursive = ${recursive}"
echo "license = ${license} containing:"
cat ${license}
# PATH (AND tmp FOLDER)
folder=$path
if [ $tmp ]; then
mkdir -pv ${path}_tmp
cp -a $path/. ${path}_tmp
folder=${path}_tmp
fi
# DETECT AND REMOVE EXISTING LICENSE
#TODO
# ADD CONTENT OF license-file AT THE BEGINNING OF CODE FILES
for i in $(find $folder -name '*.c' -or -name '*.cpp' -or -name '*.h' -or -name '*.hpp')
do
done
// Copyright (C) 2021-2022 Institut de Robòtica i Informàtica Industrial, CSIC-UPC.
// Authors: Joan Solà Ortega (jsola@iri.upc.edu)
// All rights reserved.
//
// This file is part of WOLF
// WOLF is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment