Compare commits
2 Commits
c63a902738
...
7ffbedfebd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ffbedfebd | ||
|
|
a4c293c2f3 |
19
Makefile
Normal file
19
Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
include Makefile.in
|
||||||
|
|
||||||
|
all: atom #$(wildcard toys/*) $(wildcard lib/*/*)
|
||||||
|
mkdir work
|
||||||
|
cp -r atom toys work
|
||||||
|
sed -i 's:%LIBDIR%:'$(libdir)':;s:%SHAREDIR%:'$(sharedir)':;s:%DOCDIR%:'$(docdir)':' work/atom work/toys/*
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -m 644 -D -t $(docdir) doc/*
|
||||||
|
install -m 644 -D README.md $(docdir)/README.md
|
||||||
|
install -m 644 -D work/toys/README $(docdir)/README.toys
|
||||||
|
rm work/toys/README
|
||||||
|
install -m 644 -D -t $(sharedir) share/*
|
||||||
|
install -d $(libdir)
|
||||||
|
cp -dpr --no-preserve=ownership lib/* $(libdir)
|
||||||
|
install -D -t $(bindir) work/atom work/toys/*
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -Rf work
|
||||||
@ -61,6 +61,13 @@ Here's what I have for my tests:
|
|||||||
|
|
||||||
## Using the software
|
## Using the software
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
1. Clone the repository: `git clone https://framagit.org/atom/AtOM.git`
|
||||||
|
2. run `./configure && make && sudo make install`
|
||||||
|
|
||||||
|
`./configure` takes an optional prefix: `./configure --prefix=/usr`. Defaults to /usr/local.
|
||||||
|
|
||||||
### Configuration:
|
### Configuration:
|
||||||
On first run, AtOM will ask a set of questions to help you create a
|
On first run, AtOM will ask a set of questions to help you create a
|
||||||
configuration file.
|
configuration file.
|
||||||
|
|||||||
6
atom
6
atom
@ -37,9 +37,9 @@ declare -A \
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -r \
|
declare -r \
|
||||||
DOCDIR=./doc \
|
DOCDIR=%DOCDIR% \
|
||||||
LIBDIR=./lib \
|
LIBDIR=%LIBDIR% \
|
||||||
SHAREDIR=./share
|
SHAREDIR=%SHAREDIR%
|
||||||
declare -r \
|
declare -r \
|
||||||
exampleconf=$DOCDIR/example.cfg \
|
exampleconf=$DOCDIR/example.cfg \
|
||||||
schema=$SHAREDIR/schema.sql \
|
schema=$SHAREDIR/schema.sql \
|
||||||
|
|||||||
28
configure
vendored
Executable file
28
configure
vendored
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# defaults
|
||||||
|
default_prefix=/usr/local
|
||||||
|
#default_bindir=$default_prefix/bin
|
||||||
|
#default_libdir=$default_prefix/lib
|
||||||
|
#default_sharedir=$default_prefix/share
|
||||||
|
|
||||||
|
while (( $# ))
|
||||||
|
do
|
||||||
|
case "$1" in
|
||||||
|
--prefix=*) prefix="${1#*=}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
bindir="${prefix:-$default_prefix}"/bin
|
||||||
|
libdir="${prefix:-$default_prefix}"/lib/AtOM
|
||||||
|
sharedir="${prefix:-$default_prefix}"/share/AtOM
|
||||||
|
docdir="${prefix:-$default_prefix}"/share/doc/AtOM
|
||||||
|
|
||||||
|
cat > Makefile.in <<-EOMakefile.in
|
||||||
|
bindir = "$bindir"
|
||||||
|
libdir = "$libdir"
|
||||||
|
sharedir = "$sharedir"
|
||||||
|
docdir = "$docdir"
|
||||||
|
EOMakefile.in
|
||||||
@ -23,9 +23,9 @@ declare -A \
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -r \
|
declare -r \
|
||||||
DOCDIR=./doc \
|
DOCDIR=%DOCDIR% \
|
||||||
LIBDIR=./lib \
|
LIBDIR=%LIBDIR% \
|
||||||
SHAREDIR=./share
|
SHAREDIR=%SHAREDIR%
|
||||||
declare -r \
|
declare -r \
|
||||||
exampleconf=$DOCDIR/example.cfg \
|
exampleconf=$DOCDIR/example.cfg \
|
||||||
schema=$SHAREDIR/schema.sql \
|
schema=$SHAREDIR/schema.sql \
|
||||||
|
|||||||
@ -23,9 +23,9 @@ declare -A \
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -r \
|
declare -r \
|
||||||
DOCDIR=./doc \
|
DOCDIR=%DOCDIR% \
|
||||||
LIBDIR=./lib \
|
LIBDIR=%LIBDIR% \
|
||||||
SHAREDIR=./share
|
SHAREDIR=%SHAREDIR%
|
||||||
declare -r \
|
declare -r \
|
||||||
exampleconf=$DOCDIR/example.cfg \
|
exampleconf=$DOCDIR/example.cfg \
|
||||||
schema=$SHAREDIR/schema.sql \
|
schema=$SHAREDIR/schema.sql \
|
||||||
|
|||||||
@ -23,9 +23,9 @@ declare -A \
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -r \
|
declare -r \
|
||||||
DOCDIR=./doc \
|
DOCDIR=%DOCDIR% \
|
||||||
LIBDIR=./lib \
|
LIBDIR=%LIBDIR% \
|
||||||
SHAREDIR=./share
|
SHAREDIR=%SHAREDIR%
|
||||||
declare -r \
|
declare -r \
|
||||||
exampleconf=$DOCDIR/example.cfg \
|
exampleconf=$DOCDIR/example.cfg \
|
||||||
schema=$SHAREDIR/schema.sql \
|
schema=$SHAREDIR/schema.sql \
|
||||||
|
|||||||
@ -23,9 +23,9 @@ declare -A \
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -r \
|
declare -r \
|
||||||
DOCDIR=./doc \
|
DOCDIR=%DOCDIR% \
|
||||||
LIBDIR=./lib \
|
LIBDIR=%LIBDIR% \
|
||||||
SHAREDIR=./share
|
SHAREDIR=%SHAREDIR%
|
||||||
declare -r \
|
declare -r \
|
||||||
exampleconf=$DOCDIR/example.cfg \
|
exampleconf=$DOCDIR/example.cfg \
|
||||||
schema=$SHAREDIR/schema.sql \
|
schema=$SHAREDIR/schema.sql \
|
||||||
|
|||||||
@ -25,9 +25,9 @@ declare -A \
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -r \
|
declare -r \
|
||||||
DOCDIR=./doc \
|
DOCDIR=%DOCDIR% \
|
||||||
LIBDIR=./lib \
|
LIBDIR=%LIBDIR% \
|
||||||
SHAREDIR=./share
|
SHAREDIR=%SHAREDIR%
|
||||||
declare -r \
|
declare -r \
|
||||||
exampleconf=$DOCDIR/example.cfg \
|
exampleconf=$DOCDIR/example.cfg \
|
||||||
schema=$SHAREDIR/schema.sql \
|
schema=$SHAREDIR/schema.sql \
|
||||||
|
|||||||
@ -23,9 +23,9 @@ declare -A \
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -r \
|
declare -r \
|
||||||
DOCDIR=./doc \
|
DOCDIR=%DOCDIR% \
|
||||||
LIBDIR=./lib \
|
LIBDIR=%LIBDIR% \
|
||||||
SHAREDIR=./share
|
SHAREDIR=%SHAREDIR%
|
||||||
declare -r \
|
declare -r \
|
||||||
exampleconf=$DOCDIR/example.cfg \
|
exampleconf=$DOCDIR/example.cfg \
|
||||||
schema=$SHAREDIR/schema.sql \
|
schema=$SHAREDIR/schema.sql \
|
||||||
|
|||||||
@ -24,9 +24,9 @@ declare -A \
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare -r \
|
declare -r \
|
||||||
DOCDIR=./doc \
|
DOCDIR=%DOCDIR% \
|
||||||
LIBDIR=./lib \
|
LIBDIR=%LIBDIR% \
|
||||||
SHAREDIR=./share
|
SHAREDIR=%SHAREDIR%
|
||||||
declare -r \
|
declare -r \
|
||||||
exampleconf=$DOCDIR/example.cfg \
|
exampleconf=$DOCDIR/example.cfg \
|
||||||
schema=$SHAREDIR/schema.sql \
|
schema=$SHAREDIR/schema.sql \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user