summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-05-19 10:00:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-05-19 10:25:10 +0900
commit0d3ac8f304e1726db2f4849950435c2fa232855e (patch)
treeb4e8307ff7c26d45bb2897bd315ae0932732e3be /kernel
parentfa69d809c78de91a637bfc7d9ad961e4682c0789 (diff)
downloadlibksquirrel-0d3ac8f304e1726db2f4849950435c2fa232855e.tar.gz
libksquirrel-0d3ac8f304e1726db2f4849950435c2fa232855e.zip
Removed unnecessary files
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kernel')
-rwxr-xr-xkernel/generate223
-rwxr-xr-xkernel/link24
-rwxr-xr-xkernel/plusx3
3 files changed, 0 insertions, 250 deletions
diff --git a/kernel/generate b/kernel/generate
deleted file mode 100755
index 59e5ce5..0000000
--- a/kernel/generate
+++ /dev/null
@@ -1,223 +0,0 @@
-#!/bin/sh
-
-# Generate new development directory for image format
-#
-# Usage:
-# $ ./generate <format>
-#
-
-
-name=$1
-mkdir $name
-mkdir include > /dev/null 2>&1
-cd $name
-
-cat << EOF > Makefile.am
-INCLUDES = -I../include
-
-lib_LTLIBRARIES = lib${name}.la
-
-lib${name}_la_SOURCES = fmt_codec_${name}.cpp fmt_codec_${name}_defs.h
-
-lib${name}_la_LDFLAGS =
-EOF
-
-cat << EOF > ../include/fmt_codec_${name}.h
-/* This file is part of ksquirrel-libs (http://ksquirrel.sf.net)
-
- Copyright (c) 2005 Dmitry Baryshev <ksquirrel@tut.by>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation;
- either version 2 of the License, or (at your option) any later
- version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef KSQUIRREL_LIBS_CLASS_DEFINITION_${name}_H
-#define KSQUIRREL_LIBS_CLASS_DEFINITION_${name}_H
-
-#include "ksquirrel-libs/fmt_codec_base.h"
-
-class fmt_codec : public fmt_codec_base
-{
- public:
-
- BASE_CODEC_DECLARATIONS
-
- private:
- // define variables you need here
-};
-
-#endif
-EOF
-
-cat << EOF > fmt_codec_${name}_defs.h
-/* This file is part of ksquirrel-libs (http://ksquirrel.sf.net)
-
- Copyright (c) 2005 Dmitry Baryshev <ksquirrel@tut.by>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation;
- either version 2 of the License, or (at your option) any later
- version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef KSQUIRREL_CODEC_DEFS_${name}
-#define KSQUIRREL_CODEC_DEFS_${name}
-
-// define constants here
-
-#endif
-EOF
-
-cat << EOF > fmt_codec_${name}.cpp
-/* This file is part of ksquirrel-libs (http://ksquirrel.sf.net)
-
- Copyright (c) 2005 Dmitry Baryshev <ksquirrel@tut.by>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation;
- either version 2 of the License, or (at your option) any later
- version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include <iostream>
-
-#include "ksquirrel-libs/fmt_types.h"
-#include "ksquirrel-libs/fileio.h"
-
-#include "fmt_codec_${name}_defs.h"
-#include "fmt_codec_${name}.h"
-
-#include "ksquirrel-libs/fmt_utils.h"
-#include "ksquirrel-libs/error.h"
-
-#include "../xpm/codec_${name}.xpm"
-EOF
-
-cat << EOF >> fmt_codec_${name}.cpp
-
-fmt_codec::fmt_codec() : fmt_codec_base()
-{}
-
-fmt_codec::~fmt_codec()
-{}
-
-void fmt_codec::options(codec_options *o)
-{
- o->version = "0.1.0";
- o->name = "";
- o->filter = "*. ";
- o->mime = "";
- o->pixmap = codec_${name};
- o->config = "";
- o->readable = true;
- o->writestatic = false;
- o->writeanimated = false;
- o->canbemultiple = false;
- o->needtempfile = false;
-}
-
-s32 fmt_codec::read_init(const std::string &file)
-{
- frs.open(file.c_str(), ios::binary | ios::in);
-
- if(!frs.good())
- return SQE_R_NOFILE;
-
- currentImage = -1;
- read_error = false;
-
- finfo.animated = false;
-
- return SQE_OK;
-}
-
-s32 fmt_codec::read_next()
-{
- currentImage++;
-
- if(currentImage)
- return SQE_NOTOK;
-
- fmt_image image;
-
-/*
- image.w =
- image.h =
- image.bpp =
-*/
-
- image.compression = "";
- image.colorspace = "";
-
- finfo.image.push_back(image);
-
- return SQE_OK;
-}
-
-s32 fmt_codec::read_next_pass()
-{
- return SQE_OK;
-}
-
-s32 fmt_codec::read_scanline(RGBA *scan)
-{
- RGB rgb;
- RGBA rgba;
- fmt_image *im = image(currentImage);
- fmt_utils::fillAlpha(scan, im->w);
-
-
- return SQE_OK;
-}
-
-void fmt_codec::read_close()
-{
- frs.close();
-
- finfo.meta.clear();
- finfo.image.clear();
-}
-
-#include "fmt_codec_cd_func.h"
-EOF
-
-echo
-echo "All done!"
-echo
-echo "Don't forget to insert your copyrights and edit Makefile.am"
-echo
diff --git a/kernel/link b/kernel/link
deleted file mode 100755
index 9256b03..0000000
--- a/kernel/link
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-# create symlinks from all codecs (bmp/.libs/libkls_bmp.so, ...)
-# to /usr/lib/ksquirrel-libs/
-#
-# Can be used by developers
-#
-# Usage:
-# $ cd ksquirrel-libs/kernel/
-# $ ./link
-#
-
-KSQUIRREL_LIBS="/usr/lib/ksquirrel-libs/"
-
-rm -f $KSQUIRREL_LIBS/*
-
-mkdir $KSQUIRREL_LIBS > /dev/null 2>&1
-
-for i in avs bmp camera cut dds dicom eps fli gif hdr ico iff fig jbig jpeg jpeg2000 koala ljpeg lif mac mdl mng msp mtv openexr pcx pix png pnm psd psp pxr ras rawrgb sct sgi sun svg tga tiff ttf utah wal wbmp wmf xbm xcur xpm xwd djvu dxf xcf neo leaf pi1 pi3 xim pict;
-do echo "Linking libkls_$i.so ..." && ln -s `pwd`/kls_$i/.libs/libkls_$i.so $KSQUIRREL_LIBS;
-done
-
-rm -f /usr/lib/libksquirrel-libs.so
-ln -s `pwd`/ksquirrel-libs/.libs/libksquirrel-libs.so /usr/lib
diff --git a/kernel/plusx b/kernel/plusx
deleted file mode 100755
index 4d26ba8..0000000
--- a/kernel/plusx
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-for i in /usr/bin/ksquirrel-libs-*; do chmod +x $i; done \ No newline at end of file