mirror of
https://codeberg.org/scip/note.git
synced 2025-12-16 20:21:04 +01:00
FIXED: regexp bug fixed. It was only possible to delete 2 items together
separated by comma ("d 1,2,3,4" deleted only 1,2!).
ADDED: Some new config options which reflects the new module structure.
So you can change your database backend without the need to
replace the note script itself.
FIXED: the previously added feature "cd <topic>" didn't really work :-(
ADDED: NOTEDB::mysql added. Perlmodule, which I will use within
note from now on instead of buildin functions for accessing the
database. From now on I only need to maintain one version of
note, since the module interface will be identical between the
bin and sql version.
CHANGED: The SQL code does not use Mysql.pm anymore. Instead it is coded
using the more portable DBI module. This allows one easily to
switch to anther database, which is supported by DBI.
CHANGED: Locking. The db-table will now be locked before note accesses it.
FIXED: width of listings is now always the same independent of the string-
length of a certain note.
57 lines
1.0 KiB
Bash
Executable File
57 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# installer for note 0.8 >
|
|
|
|
# $Id: install.sh,v 1.1 2000/03/19 03:33:28 thomas Exp thomas $
|
|
|
|
die ()
|
|
{
|
|
MSG=$1
|
|
echo $MSG
|
|
exit 1
|
|
}
|
|
|
|
SRC=.
|
|
|
|
NOTEDB="$SRC/NOTEDB"
|
|
|
|
BIN="$SRC/bin"
|
|
|
|
echo "Enter the destination for the note perl modules [/usr/local/lib] :"
|
|
|
|
read LIBDIR
|
|
|
|
echo "Enter the destination for the note program [/usr/local/bin] :"
|
|
|
|
read BINDIR
|
|
|
|
if [ "${LIBDIR}" = "" ] ; then
|
|
LIBDIR=/usr/local/lib
|
|
fi
|
|
|
|
if [ "${BINDIR}" = "" ] ; then
|
|
BINDIR=/usr/local/bin
|
|
fi
|
|
|
|
if [ ! -d ${LIBDIR} ] ; then
|
|
mkdir -p ${LIBDIR} || die "Could not create ${LIBDIR}!"
|
|
fi
|
|
|
|
if [ ! -d ${BINDIR} ] ; then
|
|
mkdir -p ${BINDIR} || die "Could not create ${BINDIR}!"
|
|
fi
|
|
|
|
echo "Installing note ..."
|
|
|
|
cp -ri ${NOTEDB} ${LIBDIR} || die "Could not copy modules!"
|
|
|
|
cp -i "${BIN}/note" ${BINDIR} || die "Could not copy note script!"
|
|
|
|
chmod 755 ${BINDIR}/note
|
|
chmod 755 ${LIBDIR}/NOTEDB
|
|
chmod 644 ${LIBDIR}/NOTEDB/*
|
|
|
|
echo "done. Please copy ${SRC}/config/noterc to ~/.noterc"
|
|
echo "and edit it if you like. "
|
|
echo
|
|
echo "Thanks for using note 0.8!"
|