From c26f2cc80a0f648ede18e91f65756e26052a967a Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 24 Oct 2015 12:19:01 +0200 Subject: [PATCH] linux: remove an useless script --- linux_various/detect_missing_file_in_cmake.sh | 64 ------------------- 1 file changed, 64 deletions(-) delete mode 100755 linux_various/detect_missing_file_in_cmake.sh diff --git a/linux_various/detect_missing_file_in_cmake.sh b/linux_various/detect_missing_file_in_cmake.sh deleted file mode 100755 index a46141b243..0000000000 --- a/linux_various/detect_missing_file_in_cmake.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh - -# PCSX2 - PS2 Emulator for PCs -# Copyright (C) 2002-2011 PCSX2 Dev Team -# -# PCSX2 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 Found- -# ation, either version 3 of the License, or (at your option) any later version. -# -# PCSX2 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with PCSX2. -# If not, see . - -# Script default parameter -MAX_DEPTH=1 -DIR=$PWD -CMAKE_FILE=CMakeLists.txt -SKIP_H=FALSE - -## Help message -help() -{ - cat < : give the directory to check. Default '.' --help : print this help message and exit --max_depth : how many depth to check missing file. Default 1 --skip : skip the check of '.h' file. Disable by default -EOF - - exit 0 -} - -## Handle option -while [ -n "$1" ]; do -case $1 in - -help|-h) help;shift 1;; # appel de la fonction help - -skip|-s) SKIP_H=TRUE;shift 1;; - -dir|-d) DIR=$2;shift 2;; - -max_depth|-m) MAX_DEPTH=$2;shift 2;; - --) shift;break;; - -*) echo "ERROR: $1 option does not exists. Use -h for help";exit 1;; - *) break;; -esac -done - - -## Main sript -for file in `find $DIR -maxdepth $MAX_DEPTH -name "*.cpp"` ; do - PATTERN=`basename $file` - grep $PATTERN $DIR/$CMAKE_FILE > /dev/null || echo $file is missing in $CMAKE_FILE -done - -if [ "${SKIP_H}" = "FALSE" ] ; then - for file in `find $DIR -maxdepth $MAX_DEPTH -name "*.h"` ; do - PATTERN=`basename $file` - grep $PATTERN $DIR/$CMAKE_FILE > /dev/null || echo $file is missing in $CMAKE_FILE - done -fi -exit