Fri, 28 Dec 2012 16:43:18 +0100
updated copyright year + added make install + removed project files
1.1 --- a/.cproject Fri Dec 28 16:25:07 2012 +0100 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,131 +0,0 @@ 1.4 -<?xml version="1.0" encoding="UTF-8" standalone="no"?> 1.5 -<?fileVersion 4.0.0?> 1.6 - 1.7 -<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> 1.8 - <storageModule moduleId="org.eclipse.cdt.core.settings"> 1.9 - <cconfiguration id="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573"> 1.10 - <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573" moduleId="org.eclipse.cdt.core.settings" name="Default"> 1.11 - <externalSettings/> 1.12 - <extensions> 1.13 - <extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/> 1.14 - <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> 1.15 - <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> 1.16 - <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> 1.17 - <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> 1.18 - <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> 1.19 - </extensions> 1.20 - </storageModule> 1.21 - <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 1.22 - <configuration artifactName="cline" buildProperties="" description="" id="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573" name="Default" parent="org.eclipse.cdt.build.core.emptycfg"> 1.23 - <folderInfo id="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573.925482417" name="/" resourcePath=""> 1.24 - <toolChain id="cdt.managedbuild.toolchain.gnu.mingw.base.1515980604" name="cdt.managedbuild.toolchain.gnu.mingw.base" superClass="cdt.managedbuild.toolchain.gnu.mingw.base"> 1.25 - <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.PE" id="cdt.managedbuild.target.gnu.platform.mingw.base.572787976" name="Debug Platform" osList="win32" superClass="cdt.managedbuild.target.gnu.platform.mingw.base"/> 1.26 - <builder id="cdt.managedbuild.target.gnu.builder.base.349472496" incrementalBuildTarget="all CONF=mingw" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" stopOnErr="true" superClass="cdt.managedbuild.target.gnu.builder.base"/> 1.27 - <tool id="cdt.managedbuild.tool.gnu.assembler.mingw.base.1362600845" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.mingw.base"> 1.28 - <inputType id="cdt.managedbuild.tool.gnu.assembler.input.902665459" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> 1.29 - </tool> 1.30 - <tool id="cdt.managedbuild.tool.gnu.archiver.mingw.base.1854197304" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.mingw.base"/> 1.31 - <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.base.587980711" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.base"> 1.32 - <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1604468143" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/> 1.33 - </tool> 1.34 - <tool id="cdt.managedbuild.tool.gnu.c.compiler.mingw.base.40840995" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.mingw.base"> 1.35 - <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1426829237" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> 1.36 - </tool> 1.37 - <tool id="cdt.managedbuild.tool.gnu.c.linker.mingw.base.1769052188" name="MinGW C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.mingw.base"/> 1.38 - <tool id="cdt.managedbuild.tool.gnu.cpp.linker.mingw.base.1937061838" name="MinGW C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.mingw.base"> 1.39 - <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.683685806" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input"> 1.40 - <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> 1.41 - <additionalInput kind="additionalinput" paths="$(LIBS)"/> 1.42 - </inputType> 1.43 - </tool> 1.44 - </toolChain> 1.45 - </folderInfo> 1.46 - </configuration> 1.47 - </storageModule> 1.48 - <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 1.49 - </cconfiguration> 1.50 - <cconfiguration id="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573.679714212"> 1.51 - <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573.679714212" moduleId="org.eclipse.cdt.core.settings" name="Debug"> 1.52 - <externalSettings/> 1.53 - <extensions> 1.54 - <extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/> 1.55 - <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> 1.56 - <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> 1.57 - <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> 1.58 - <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> 1.59 - <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> 1.60 - </extensions> 1.61 - </storageModule> 1.62 - <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 1.63 - <configuration artifactName="cline" buildProperties="" description="Debug Configuration" id="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573.679714212" name="Debug" parent="org.eclipse.cdt.build.core.emptycfg"> 1.64 - <folderInfo id="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573.679714212." name="/" resourcePath=""> 1.65 - <toolChain id="cdt.managedbuild.toolchain.gnu.mingw.base.135920029" name="cdt.managedbuild.toolchain.gnu.mingw.base" superClass="cdt.managedbuild.toolchain.gnu.mingw.base"> 1.66 - <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.PE" id="cdt.managedbuild.target.gnu.platform.mingw.base.880199945" name="Debug Platform" osList="win32" superClass="cdt.managedbuild.target.gnu.platform.mingw.base"/> 1.67 - <builder id="cdt.managedbuild.target.gnu.builder.base.1688966472" incrementalBuildTarget="all CONF=mingw-debug" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" stopOnErr="true" superClass="cdt.managedbuild.target.gnu.builder.base"/> 1.68 - <tool id="cdt.managedbuild.tool.gnu.assembler.mingw.base.1558326557" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.mingw.base"> 1.69 - <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1325272903" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> 1.70 - </tool> 1.71 - <tool id="cdt.managedbuild.tool.gnu.archiver.mingw.base.914408551" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.mingw.base"/> 1.72 - <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.base.306736786" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.mingw.base"> 1.73 - <inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1972355005" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/> 1.74 - </tool> 1.75 - <tool id="cdt.managedbuild.tool.gnu.c.compiler.mingw.base.471019641" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.mingw.base"> 1.76 - <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.238480503" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> 1.77 - </tool> 1.78 - <tool id="cdt.managedbuild.tool.gnu.c.linker.mingw.base.1465337709" name="MinGW C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.mingw.base"/> 1.79 - <tool id="cdt.managedbuild.tool.gnu.cpp.linker.mingw.base.1366910272" name="MinGW C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.mingw.base"> 1.80 - <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.718128139" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input"> 1.81 - <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/> 1.82 - <additionalInput kind="additionalinput" paths="$(LIBS)"/> 1.83 - </inputType> 1.84 - </tool> 1.85 - </toolChain> 1.86 - </folderInfo> 1.87 - </configuration> 1.88 - </storageModule> 1.89 - <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> 1.90 - </cconfiguration> 1.91 - </storageModule> 1.92 - <storageModule moduleId="cdtBuildSystem" version="4.0.0"> 1.93 - <project id="cline.null.1826762082" name="cline"/> 1.94 - </storageModule> 1.95 - <storageModule moduleId="refreshScope" versionNumber="2"> 1.96 - <configuration configurationName="Default"> 1.97 - <resource resourceType="PROJECT" workspacePath="/cline"/> 1.98 - </configuration> 1.99 - <configuration configurationName="Debug"> 1.100 - <resource resourceType="PROJECT" workspacePath="/cline"/> 1.101 - </configuration> 1.102 - </storageModule> 1.103 - <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"> 1.104 - <buildTargets> 1.105 - <target name="all" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> 1.106 - <buildCommand>make</buildCommand> 1.107 - <buildArguments/> 1.108 - <buildTarget>all</buildTarget> 1.109 - <stopOnError>true</stopOnError> 1.110 - <useDefaultCommand>true</useDefaultCommand> 1.111 - <runAllBuilders>false</runAllBuilders> 1.112 - </target> 1.113 - <target name="clean" path="" targetID="org.eclipse.cdt.build.MakeTargetBuilder"> 1.114 - <buildCommand>make</buildCommand> 1.115 - <buildArguments/> 1.116 - <buildTarget>clean</buildTarget> 1.117 - <stopOnError>true</stopOnError> 1.118 - <useDefaultCommand>true</useDefaultCommand> 1.119 - <runAllBuilders>false</runAllBuilders> 1.120 - </target> 1.121 - </buildTargets> 1.122 - </storageModule> 1.123 - <storageModule moduleId="scannerConfiguration"> 1.124 - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> 1.125 - <scannerConfigBuildInfo instanceId="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573;cdt.managedbuild.toolchain.gnu.mingw.base.1677102573.925482417;cdt.managedbuild.tool.gnu.cpp.compiler.mingw.base.587980711;cdt.managedbuild.tool.gnu.cpp.compiler.input.1604468143"> 1.126 - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP"/> 1.127 - </scannerConfigBuildInfo> 1.128 - <scannerConfigBuildInfo instanceId="cdt.managedbuild.toolchain.gnu.mingw.base.1677102573;cdt.managedbuild.toolchain.gnu.mingw.base.1677102573.925482417;cdt.managedbuild.tool.gnu.c.compiler.mingw.base.40840995;cdt.managedbuild.tool.gnu.c.compiler.input.1426829237"> 1.129 - <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> 1.130 - </scannerConfigBuildInfo> 1.131 - </storageModule> 1.132 - <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> 1.133 - <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> 1.134 -</cproject>
2.1 --- a/.hgignore Fri Dec 28 16:25:07 2012 +0100 2.2 +++ b/.hgignore Fri Dec 28 16:43:18 2012 +0100 2.3 @@ -1,6 +1,7 @@ 2.4 syntax: regexp 2.5 ^build/.*$ 2.6 - 2.7 +^nbproject/ 2.8 +^.c?project$ 2.9 \.orig\..*$ 2.10 \.orig$ 2.11 \.chg\..*$
3.1 --- a/.project Fri Dec 28 16:25:07 2012 +0100 3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 3.3 @@ -1,78 +0,0 @@ 3.4 -<?xml version="1.0" encoding="UTF-8"?> 3.5 -<projectDescription> 3.6 - <name>cline</name> 3.7 - <comment></comment> 3.8 - <projects> 3.9 - </projects> 3.10 - <buildSpec> 3.11 - <buildCommand> 3.12 - <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> 3.13 - <triggers>clean,full,incremental,</triggers> 3.14 - <arguments> 3.15 - <dictionary> 3.16 - <key>?name?</key> 3.17 - <value></value> 3.18 - </dictionary> 3.19 - <dictionary> 3.20 - <key>org.eclipse.cdt.make.core.append_environment</key> 3.21 - <value>true</value> 3.22 - </dictionary> 3.23 - <dictionary> 3.24 - <key>org.eclipse.cdt.make.core.autoBuildTarget</key> 3.25 - <value>all</value> 3.26 - </dictionary> 3.27 - <dictionary> 3.28 - <key>org.eclipse.cdt.make.core.buildArguments</key> 3.29 - <value></value> 3.30 - </dictionary> 3.31 - <dictionary> 3.32 - <key>org.eclipse.cdt.make.core.buildCommand</key> 3.33 - <value>make</value> 3.34 - </dictionary> 3.35 - <dictionary> 3.36 - <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> 3.37 - <value>clean</value> 3.38 - </dictionary> 3.39 - <dictionary> 3.40 - <key>org.eclipse.cdt.make.core.contents</key> 3.41 - <value>org.eclipse.cdt.make.core.activeConfigSettings</value> 3.42 - </dictionary> 3.43 - <dictionary> 3.44 - <key>org.eclipse.cdt.make.core.enableAutoBuild</key> 3.45 - <value>false</value> 3.46 - </dictionary> 3.47 - <dictionary> 3.48 - <key>org.eclipse.cdt.make.core.enableCleanBuild</key> 3.49 - <value>true</value> 3.50 - </dictionary> 3.51 - <dictionary> 3.52 - <key>org.eclipse.cdt.make.core.enableFullBuild</key> 3.53 - <value>true</value> 3.54 - </dictionary> 3.55 - <dictionary> 3.56 - <key>org.eclipse.cdt.make.core.fullBuildTarget</key> 3.57 - <value>all CONF=mingw</value> 3.58 - </dictionary> 3.59 - <dictionary> 3.60 - <key>org.eclipse.cdt.make.core.stopOnError</key> 3.61 - <value>true</value> 3.62 - </dictionary> 3.63 - <dictionary> 3.64 - <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> 3.65 - <value>true</value> 3.66 - </dictionary> 3.67 - </arguments> 3.68 - </buildCommand> 3.69 - <buildCommand> 3.70 - <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> 3.71 - <arguments> 3.72 - </arguments> 3.73 - </buildCommand> 3.74 - </buildSpec> 3.75 - <natures> 3.76 - <nature>org.eclipse.cdt.core.cnature</nature> 3.77 - <nature>org.eclipse.cdt.core.ccnature</nature> 3.78 - <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> 3.79 - <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> 3.80 - </natures> 3.81 -</projectDescription>
4.1 --- a/LICENSE Fri Dec 28 16:25:07 2012 +0100 4.2 +++ b/LICENSE Fri Dec 28 16:43:18 2012 +0100 4.3 @@ -1,4 +1,4 @@ 4.4 -Copyright 2011 Mike Becker. All rights reserved. 4.5 +Copyright 2013 Mike Becker. All rights reserved. 4.6 4.7 Redistribution and use in source and binary forms, with or without 4.8 modification, are permitted provided that the following conditions are met:
5.1 --- a/Makefile Fri Dec 28 16:25:07 2012 +0100 5.2 +++ b/Makefile Fri Dec 28 16:43:18 2012 +0100 5.3 @@ -1,7 +1,7 @@ 5.4 # 5.5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 5.6 # 5.7 -# Copyright 2011 Mike Becker. All rights reserved. 5.8 +# Copyright 2013 Mike Becker. All rights reserved. 5.9 # 5.10 # Redistribution and use in source and binary forms, with or without 5.11 # modification, are permitted provided that the following conditions are met: 5.12 @@ -40,14 +40,18 @@ 5.13 VERSION_PREFIX=1.0. 5.14 SRCDIR=src 5.15 BUILDDIR=build 5.16 +PREFIX=/usr 5.17 OBJ = arguments.o bfile_heuristics.o cline.o regex_parser.o scanner.o settings.o stream.o string_list.o suffix_fnc.o 5.18 BIN = $(BUILDDIR)/cline 5.19 5.20 include $(CONF).mk 5.21 5.22 -all: $(BUILDDIR) compile 5.23 +all: $(BUILDDIR) $(BIN) 5.24 5.25 -compile: $(OBJ:%=$(BUILDDIR)/%) 5.26 +install: $(BIN) 5.27 + cp $(BIN) $(PREFIX)/bin 5.28 + 5.29 +$(BIN): $(OBJ:%=$(BUILDDIR)/%) 5.30 $(LD) -o $(BIN) $^ $(LDFLAGS) 5.31 5.32 $(BUILDDIR):
6.1 --- a/gcc-debug.mk Fri Dec 28 16:25:07 2012 +0100 6.2 +++ b/gcc-debug.mk Fri Dec 28 16:43:18 2012 +0100 6.3 @@ -1,7 +1,7 @@ 6.4 # 6.5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 6.6 # 6.7 -# Copyright 2011 Mike Becker. All rights reserved. 6.8 +# Copyright 2013 Mike Becker. All rights reserved. 6.9 # 6.10 # Redistribution and use in source and binary forms, with or without 6.11 # modification, are permitted provided that the following conditions are met:
7.1 --- a/gcc.mk Fri Dec 28 16:25:07 2012 +0100 7.2 +++ b/gcc.mk Fri Dec 28 16:43:18 2012 +0100 7.3 @@ -1,7 +1,7 @@ 7.4 # 7.5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 7.6 # 7.7 -# Copyright 2011 Mike Becker. All rights reserved. 7.8 +# Copyright 2013 Mike Becker. All rights reserved. 7.9 # 7.10 # Redistribution and use in source and binary forms, with or without 7.11 # modification, are permitted provided that the following conditions are met:
8.1 --- a/mingw-debug.mk Fri Dec 28 16:25:07 2012 +0100 8.2 +++ b/mingw-debug.mk Fri Dec 28 16:43:18 2012 +0100 8.3 @@ -1,7 +1,7 @@ 8.4 # 8.5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 8.6 # 8.7 -# Copyright 2011 Mike Becker. All rights reserved. 8.8 +# Copyright 2013 Mike Becker. All rights reserved. 8.9 # 8.10 # Redistribution and use in source and binary forms, with or without 8.11 # modification, are permitted provided that the following conditions are met:
9.1 --- a/mingw.mk Fri Dec 28 16:25:07 2012 +0100 9.2 +++ b/mingw.mk Fri Dec 28 16:43:18 2012 +0100 9.3 @@ -1,7 +1,7 @@ 9.4 # 9.5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 9.6 # 9.7 -# Copyright 2011 Mike Becker. All rights reserved. 9.8 +# Copyright 2013 Mike Becker. All rights reserved. 9.9 # 9.10 # Redistribution and use in source and binary forms, with or without 9.11 # modification, are permitted provided that the following conditions are met:
10.1 --- a/nbproject/Package-Default.bash Fri Dec 28 16:25:07 2012 +0100 10.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 10.3 @@ -1,75 +0,0 @@ 10.4 -#!/bin/bash -x 10.5 - 10.6 -# 10.7 -# Generated - do not edit! 10.8 -# 10.9 - 10.10 -# Macros 10.11 -TOP=`pwd` 10.12 -CND_PLATFORM=GNU-Linux-x86 10.13 -CND_CONF=Default 10.14 -CND_DISTDIR=dist 10.15 -CND_BUILDDIR=build 10.16 -NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging 10.17 -TMPDIRNAME=tmp-packaging 10.18 -OUTPUT_PATH=MissingOutputInProject 10.19 -OUTPUT_BASENAME=MissingOutputInProject 10.20 -PACKAGE_TOP_DIR=cline/ 10.21 - 10.22 -# Functions 10.23 -function checkReturnCode 10.24 -{ 10.25 - rc=$? 10.26 - if [ $rc != 0 ] 10.27 - then 10.28 - exit $rc 10.29 - fi 10.30 -} 10.31 -function makeDirectory 10.32 -# $1 directory path 10.33 -# $2 permission (optional) 10.34 -{ 10.35 - mkdir -p "$1" 10.36 - checkReturnCode 10.37 - if [ "$2" != "" ] 10.38 - then 10.39 - chmod $2 "$1" 10.40 - checkReturnCode 10.41 - fi 10.42 -} 10.43 -function copyFileToTmpDir 10.44 -# $1 from-file path 10.45 -# $2 to-file path 10.46 -# $3 permission 10.47 -{ 10.48 - cp "$1" "$2" 10.49 - checkReturnCode 10.50 - if [ "$3" != "" ] 10.51 - then 10.52 - chmod $3 "$2" 10.53 - checkReturnCode 10.54 - fi 10.55 -} 10.56 - 10.57 -# Setup 10.58 -cd "${TOP}" 10.59 -mkdir -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package 10.60 -rm -rf ${NBTMPDIR} 10.61 -mkdir -p ${NBTMPDIR} 10.62 - 10.63 -# Copy files and create directories and links 10.64 -cd "${TOP}" 10.65 -makeDirectory "${NBTMPDIR}/cline" 10.66 -copyFileToTmpDir "${OUTPUT_PATH}" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755 10.67 - 10.68 - 10.69 -# Generate tar file 10.70 -cd "${TOP}" 10.71 -rm -f ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/cline.tar 10.72 -cd ${NBTMPDIR} 10.73 -tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/cline.tar * 10.74 -checkReturnCode 10.75 - 10.76 -# Cleanup 10.77 -cd "${TOP}" 10.78 -rm -rf ${NBTMPDIR}
11.1 --- a/nbproject/configurations.xml Fri Dec 28 16:25:07 2012 +0100 11.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 11.3 @@ -1,57 +0,0 @@ 11.4 -<?xml version="1.0" encoding="UTF-8"?> 11.5 -<configurationDescriptor version="84"> 11.6 - <logicalFolder name="root" displayName="root" projectFiles="true" kind="ROOT"> 11.7 - <df name="cline" root="."> 11.8 - <df name="build"> 11.9 - </df> 11.10 - <in>arguments.c</in> 11.11 - <in>arguments.h</in> 11.12 - <in>bfile_heuristics.c</in> 11.13 - <in>bfile_heuristics.h</in> 11.14 - <in>cline.c</in> 11.15 - <in>cline.h</in> 11.16 - <in>regex_parser.c</in> 11.17 - <in>regex_parser.h</in> 11.18 - <in>scanner.c</in> 11.19 - <in>scanner.h</in> 11.20 - <in>settings.c</in> 11.21 - <in>settings.h</in> 11.22 - <in>stdinc.h</in> 11.23 - <in>stream.c</in> 11.24 - <in>stream.h</in> 11.25 - <in>string_list.c</in> 11.26 - <in>string_list.h</in> 11.27 - <in>suffix_fnc.c</in> 11.28 - <in>suffix_fnc.h</in> 11.29 - </df> 11.30 - <logicalFolder name="ExternalFiles" 11.31 - displayName="Important Files" 11.32 - projectFiles="false" 11.33 - kind="IMPORTANT_FILES_FOLDER"> 11.34 - <itemPath>Makefile</itemPath> 11.35 - </logicalFolder> 11.36 - </logicalFolder> 11.37 - <sourceFolderFilter>^(nbproject)$</sourceFolderFilter> 11.38 - <sourceRootList> 11.39 - <Elem>.</Elem> 11.40 - </sourceRootList> 11.41 - <projectmakefile>Makefile</projectmakefile> 11.42 - <confs> 11.43 - <conf name="Default" type="0"> 11.44 - <toolsSet> 11.45 - <remote-sources-mode>LOCAL_SOURCES</remote-sources-mode> 11.46 - <compilerSet>default</compilerSet> 11.47 - </toolsSet> 11.48 - <codeAssistance> 11.49 - </codeAssistance> 11.50 - <makefileType> 11.51 - <makeTool> 11.52 - <buildCommandWorkingDir>.</buildCommandWorkingDir> 11.53 - <buildCommand>${MAKE} -f Makefile</buildCommand> 11.54 - <cleanCommand>${MAKE} -f Makefile clean</cleanCommand> 11.55 - <executablePath></executablePath> 11.56 - </makeTool> 11.57 - </makefileType> 11.58 - </conf> 11.59 - </confs> 11.60 -</configurationDescriptor>
12.1 --- a/nbproject/private/Default.properties Fri Dec 28 16:25:07 2012 +0100 12.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 12.3 @@ -1,9 +0,0 @@ 12.4 -/home/mike/workspace/c/cline/bfile_heuristics.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/bfile_heuristics.o bfile_heuristics.c 12.5 -/home/mike/workspace/c/cline/suffix_fnc.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/suffix_fnc.o suffix_fnc.c 12.6 -/home/mike/workspace/c/cline/regex_parser.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/regex_parser.o regex_parser.c 12.7 -/home/mike/workspace/c/cline/stream.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/stream.o stream.c 12.8 -/home/mike/workspace/c/cline/settings.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/settings.o settings.c 12.9 -/home/mike/workspace/c/cline/scanner.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/scanner.o scanner.c 12.10 -/home/mike/workspace/c/cline/arguments.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/arguments.o arguments.c 12.11 -/home/mike/workspace/c/cline/cline.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/cline.o cline.c 12.12 -/home/mike/workspace/c/cline/string_list.c=/home/mike/workspace/c/cline#-Wall -std=gnu99 -O -c -o build/string_list.o string_list.c
13.1 --- a/nbproject/private/configurations.xml Fri Dec 28 16:25:07 2012 +0100 13.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 13.3 @@ -1,39 +0,0 @@ 13.4 -<?xml version="1.0" encoding="UTF-8"?> 13.5 -<configurationDescriptor version="84"> 13.6 - <projectmakefile>Makefile</projectmakefile> 13.7 - <confs> 13.8 - <conf name="Default" type="0"> 13.9 - <toolsSet> 13.10 - <developmentServer>localhost</developmentServer> 13.11 - <platform>2</platform> 13.12 - </toolsSet> 13.13 - <dbx_gdbdebugger version="1"> 13.14 - <gdb_pathmaps> 13.15 - </gdb_pathmaps> 13.16 - <gdb_interceptlist> 13.17 - <gdbinterceptoptions gdb_all="false" gdb_unhandled="true" gdb_unexpected="true"/> 13.18 - </gdb_interceptlist> 13.19 - <gdb_options> 13.20 - <DebugOptions> 13.21 - </DebugOptions> 13.22 - </gdb_options> 13.23 - <gdb_buildfirst gdb_buildfirst_overriden="false" gdb_buildfirst_old="false"/> 13.24 - </dbx_gdbdebugger> 13.25 - <nativedebugger version="1"> 13.26 - <engine>gdb</engine> 13.27 - </nativedebugger> 13.28 - <runprofile version="9"> 13.29 - <runcommandpicklist> 13.30 - <runcommandpicklistitem>"${OUTPUT_PATH}"</runcommandpicklistitem> 13.31 - </runcommandpicklist> 13.32 - <runcommand>"${OUTPUT_PATH}"</runcommand> 13.33 - <rundir>.</rundir> 13.34 - <buildfirst>true</buildfirst> 13.35 - <terminal-type>0</terminal-type> 13.36 - <remove-instrumentation>0</remove-instrumentation> 13.37 - <environment> 13.38 - </environment> 13.39 - </runprofile> 13.40 - </conf> 13.41 - </confs> 13.42 -</configurationDescriptor>
14.1 --- a/nbproject/private/private.xml Fri Dec 28 16:25:07 2012 +0100 14.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 14.3 @@ -1,10 +0,0 @@ 14.4 -<?xml version="1.0" encoding="UTF-8"?> 14.5 -<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> 14.6 - <code-assistance-data xmlns="http://www.netbeans.org/ns/make-project-private/1"> 14.7 - <code-model-enabled>true</code-model-enabled> 14.8 - </code-assistance-data> 14.9 - <data xmlns="http://www.netbeans.org/ns/make-project-private/1"> 14.10 - <activeConfTypeElem>0</activeConfTypeElem> 14.11 - <activeConfIndexElem>0</activeConfIndexElem> 14.12 - </data> 14.13 -</project-private>
15.1 --- a/nbproject/project.xml Fri Dec 28 16:25:07 2012 +0100 15.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 15.3 @@ -1,23 +0,0 @@ 15.4 -<?xml version="1.0" encoding="UTF-8"?> 15.5 -<project xmlns="http://www.netbeans.org/ns/project/1"> 15.6 - <type>org.netbeans.modules.cnd.makeproject</type> 15.7 - <configuration> 15.8 - <data xmlns="http://www.netbeans.org/ns/make-project/1"> 15.9 - <name>cline</name> 15.10 - <c-extensions>c</c-extensions> 15.11 - <cpp-extensions/> 15.12 - <header-extensions>h</header-extensions> 15.13 - <sourceEncoding>UTF-8</sourceEncoding> 15.14 - <make-dep-projects/> 15.15 - <sourceRootList> 15.16 - <sourceRootElem>.</sourceRootElem> 15.17 - </sourceRootList> 15.18 - <confList> 15.19 - <confElem> 15.20 - <name>Default</name> 15.21 - <type>0</type> 15.22 - </confElem> 15.23 - </confList> 15.24 - </data> 15.25 - </configuration> 15.26 -</project>
16.1 --- a/src/arguments.c Fri Dec 28 16:25:07 2012 +0100 16.2 +++ b/src/arguments.c Fri Dec 28 16:43:18 2012 +0100 16.3 @@ -1,6 +1,6 @@ 16.4 /* 16.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 16.6 - * Copyright 2011 Mike Becker. All rights reserved. 16.7 + * Copyright 2013 Mike Becker. All rights reserved. 16.8 * 16.9 * Redistribution and use in source and binary forms, with or without 16.10 * modification, are permitted provided that the following conditions are met:
17.1 --- a/src/arguments.h Fri Dec 28 16:25:07 2012 +0100 17.2 +++ b/src/arguments.h Fri Dec 28 16:43:18 2012 +0100 17.3 @@ -1,6 +1,6 @@ 17.4 /* 17.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 17.6 - * Copyright 2011 Mike Becker. All rights reserved. 17.7 + * Copyright 2013 Mike Becker. All rights reserved. 17.8 * 17.9 * Redistribution and use in source and binary forms, with or without 17.10 * modification, are permitted provided that the following conditions are met:
18.1 --- a/src/bfile_heuristics.c Fri Dec 28 16:25:07 2012 +0100 18.2 +++ b/src/bfile_heuristics.c Fri Dec 28 16:43:18 2012 +0100 18.3 @@ -1,6 +1,6 @@ 18.4 /* 18.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 18.6 - * Copyright 2011 Mike Becker. All rights reserved. 18.7 + * Copyright 2013 Mike Becker. All rights reserved. 18.8 * 18.9 * Redistribution and use in source and binary forms, with or without 18.10 * modification, are permitted provided that the following conditions are met:
19.1 --- a/src/bfile_heuristics.h Fri Dec 28 16:25:07 2012 +0100 19.2 +++ b/src/bfile_heuristics.h Fri Dec 28 16:43:18 2012 +0100 19.3 @@ -1,6 +1,6 @@ 19.4 /* 19.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 19.6 - * Copyright 2011 Mike Becker. All rights reserved. 19.7 + * Copyright 2013 Mike Becker. All rights reserved. 19.8 * 19.9 * Redistribution and use in source and binary forms, with or without 19.10 * modification, are permitted provided that the following conditions are met:
20.1 --- a/src/cline.c Fri Dec 28 16:25:07 2012 +0100 20.2 +++ b/src/cline.c Fri Dec 28 16:43:18 2012 +0100 20.3 @@ -1,6 +1,6 @@ 20.4 /* 20.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 20.6 - * Copyright 2011 Mike Becker. All rights reserved. 20.7 + * Copyright 2013 Mike Becker. All rights reserved. 20.8 * 20.9 * Redistribution and use in source and binary forms, with or without 20.10 * modification, are permitted provided that the following conditions are met: 20.11 @@ -74,7 +74,8 @@ 20.12 "\nPlease note, that cline does not remove whitespace characters as this" 20.13 "\nmight not be reasonable in some cases." 20.14 "\n\nExample (C without comments):" 20.15 - "\n cline -s .c,.h --exclude-cstyle-comments"); 20.16 + "\n cline -s .c,.h --exclude-cstyle-comments" 20.17 + "\n"); 20.18 } 20.19 20.20 int exit_with_version(settings_t* settings) {
21.1 --- a/src/cline.h Fri Dec 28 16:25:07 2012 +0100 21.2 +++ b/src/cline.h Fri Dec 28 16:43:18 2012 +0100 21.3 @@ -1,6 +1,6 @@ 21.4 /* 21.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 21.6 - * Copyright 2011 Mike Becker. All rights reserved. 21.7 + * Copyright 2013 Mike Becker. All rights reserved. 21.8 * 21.9 * Redistribution and use in source and binary forms, with or without 21.10 * modification, are permitted provided that the following conditions are met: 21.11 @@ -32,7 +32,7 @@ 21.12 #ifndef CLINE_H_ 21.13 #define CLINE_H_ 21.14 21.15 -const char* VERSION="1.0.35"; 21.16 +const char* VERSION="1.0.36"; 21.17 21.18 #include "stdinc.h" 21.19 #include "settings.h"
22.1 --- a/src/regex_parser.c Fri Dec 28 16:25:07 2012 +0100 22.2 +++ b/src/regex_parser.c Fri Dec 28 16:43:18 2012 +0100 22.3 @@ -1,6 +1,6 @@ 22.4 /* 22.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 22.6 - * Copyright 2011 Mike Becker. All rights reserved. 22.7 + * Copyright 2013 Mike Becker. All rights reserved. 22.8 * 22.9 * Redistribution and use in source and binary forms, with or without 22.10 * modification, are permitted provided that the following conditions are met:
23.1 --- a/src/regex_parser.h Fri Dec 28 16:25:07 2012 +0100 23.2 +++ b/src/regex_parser.h Fri Dec 28 16:43:18 2012 +0100 23.3 @@ -1,6 +1,6 @@ 23.4 /* 23.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 23.6 - * Copyright 2011 Mike Becker. All rights reserved. 23.7 + * Copyright 2013 Mike Becker. All rights reserved. 23.8 * 23.9 * Redistribution and use in source and binary forms, with or without 23.10 * modification, are permitted provided that the following conditions are met:
24.1 --- a/src/scanner.c Fri Dec 28 16:25:07 2012 +0100 24.2 +++ b/src/scanner.c Fri Dec 28 16:43:18 2012 +0100 24.3 @@ -1,6 +1,6 @@ 24.4 /* 24.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 24.6 - * Copyright 2011 Mike Becker. All rights reserved. 24.7 + * Copyright 2013 Mike Becker. All rights reserved. 24.8 * 24.9 * Redistribution and use in source and binary forms, with or without 24.10 * modification, are permitted provided that the following conditions are met:
25.1 --- a/src/scanner.h Fri Dec 28 16:25:07 2012 +0100 25.2 +++ b/src/scanner.h Fri Dec 28 16:43:18 2012 +0100 25.3 @@ -1,6 +1,6 @@ 25.4 /* 25.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 25.6 - * Copyright 2011 Mike Becker. All rights reserved. 25.7 + * Copyright 2013 Mike Becker. All rights reserved. 25.8 * 25.9 * Redistribution and use in source and binary forms, with or without 25.10 * modification, are permitted provided that the following conditions are met:
26.1 --- a/src/settings.c Fri Dec 28 16:25:07 2012 +0100 26.2 +++ b/src/settings.c Fri Dec 28 16:43:18 2012 +0100 26.3 @@ -1,6 +1,6 @@ 26.4 /* 26.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 26.6 - * Copyright 2011 Mike Becker. All rights reserved. 26.7 + * Copyright 2013 Mike Becker. All rights reserved. 26.8 * 26.9 * Redistribution and use in source and binary forms, with or without 26.10 * modification, are permitted provided that the following conditions are met:
27.1 --- a/src/settings.h Fri Dec 28 16:25:07 2012 +0100 27.2 +++ b/src/settings.h Fri Dec 28 16:43:18 2012 +0100 27.3 @@ -1,6 +1,6 @@ 27.4 /* 27.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 27.6 - * Copyright 2011 Mike Becker. All rights reserved. 27.7 + * Copyright 2013 Mike Becker. All rights reserved. 27.8 * 27.9 * Redistribution and use in source and binary forms, with or without 27.10 * modification, are permitted provided that the following conditions are met:
28.1 --- a/src/stdinc.h Fri Dec 28 16:25:07 2012 +0100 28.2 +++ b/src/stdinc.h Fri Dec 28 16:43:18 2012 +0100 28.3 @@ -1,6 +1,6 @@ 28.4 /* 28.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 28.6 - * Copyright 2011 Mike Becker. All rights reserved. 28.7 + * Copyright 2013 Mike Becker. All rights reserved. 28.8 * 28.9 * Redistribution and use in source and binary forms, with or without 28.10 * modification, are permitted provided that the following conditions are met:
29.1 --- a/src/stream.c Fri Dec 28 16:25:07 2012 +0100 29.2 +++ b/src/stream.c Fri Dec 28 16:43:18 2012 +0100 29.3 @@ -1,6 +1,6 @@ 29.4 /* 29.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 29.6 - * Copyright 2011 Mike Becker. All rights reserved. 29.7 + * Copyright 2013 Mike Becker. All rights reserved. 29.8 * 29.9 * Redistribution and use in source and binary forms, with or without 29.10 * modification, are permitted provided that the following conditions are met:
30.1 --- a/src/stream.h Fri Dec 28 16:25:07 2012 +0100 30.2 +++ b/src/stream.h Fri Dec 28 16:43:18 2012 +0100 30.3 @@ -1,6 +1,6 @@ 30.4 /* 30.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 30.6 - * Copyright 2011 Mike Becker. All rights reserved. 30.7 + * Copyright 2013 Mike Becker. All rights reserved. 30.8 * 30.9 * Redistribution and use in source and binary forms, with or without 30.10 * modification, are permitted provided that the following conditions are met:
31.1 --- a/src/string_list.c Fri Dec 28 16:25:07 2012 +0100 31.2 +++ b/src/string_list.c Fri Dec 28 16:43:18 2012 +0100 31.3 @@ -1,6 +1,6 @@ 31.4 /* 31.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 31.6 - * Copyright 2011 Mike Becker. All rights reserved. 31.7 + * Copyright 2013 Mike Becker. All rights reserved. 31.8 * 31.9 * Redistribution and use in source and binary forms, with or without 31.10 * modification, are permitted provided that the following conditions are met:
32.1 --- a/src/string_list.h Fri Dec 28 16:25:07 2012 +0100 32.2 +++ b/src/string_list.h Fri Dec 28 16:43:18 2012 +0100 32.3 @@ -1,6 +1,6 @@ 32.4 /* 32.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 32.6 - * Copyright 2011 Mike Becker. All rights reserved. 32.7 + * Copyright 2013 Mike Becker. All rights reserved. 32.8 * 32.9 * Redistribution and use in source and binary forms, with or without 32.10 * modification, are permitted provided that the following conditions are met:
33.1 --- a/src/suffix_fnc.c Fri Dec 28 16:25:07 2012 +0100 33.2 +++ b/src/suffix_fnc.c Fri Dec 28 16:43:18 2012 +0100 33.3 @@ -1,6 +1,6 @@ 33.4 /* 33.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 33.6 - * Copyright 2011 Mike Becker. All rights reserved. 33.7 + * Copyright 2013 Mike Becker. All rights reserved. 33.8 * 33.9 * Redistribution and use in source and binary forms, with or without 33.10 * modification, are permitted provided that the following conditions are met:
34.1 --- a/src/suffix_fnc.h Fri Dec 28 16:25:07 2012 +0100 34.2 +++ b/src/suffix_fnc.h Fri Dec 28 16:43:18 2012 +0100 34.3 @@ -1,6 +1,6 @@ 34.4 /* 34.5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 34.6 - * Copyright 2011 Mike Becker. All rights reserved. 34.7 + * Copyright 2013 Mike Becker. All rights reserved. 34.8 * 34.9 * Redistribution and use in source and binary forms, with or without 34.10 * modification, are permitted provided that the following conditions are met: