diff options
| author | Michael Neves | 2012-09-28 16:24:52 +0200 |
|---|---|---|
| committer | Michael Neves | 2012-09-28 16:24:52 +0200 |
| commit | 0100f9bf58ce11b242099ece59e68dbf3b6ad625 (patch) | |
| tree | 3f0fcc30bfaea71564789faea00de1d1dc150167 /remote/tools/systemd/build.systemd | |
| parent | file permissions... (diff) | |
| download | tm-scripts-0100f9bf58ce11b242099ece59e68dbf3b6ad625.tar.gz tm-scripts-0100f9bf58ce11b242099ece59e68dbf3b6ad625.tar.xz tm-scripts-0100f9bf58ce11b242099ece59e68dbf3b6ad625.zip | |
git ignore
Diffstat (limited to 'remote/tools/systemd/build.systemd')
| -rw-r--r-- | remote/tools/systemd/build.systemd | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/remote/tools/systemd/build.systemd b/remote/tools/systemd/build.systemd index e69de29b..f8616da2 100644 --- a/remote/tools/systemd/build.systemd +++ b/remote/tools/systemd/build.systemd @@ -0,0 +1,33 @@ +#tool/distro specific functions for fetching, building and installing dependencies + +fetch_source () +{ +# if [ -d $VERSION/ ]; then +# read -p "$VERSION already exists and would be overwritten, continue anyway (y/n)?" +# [ "$REPLY" == "n" ] && exit 1 +# fi + + if [ ! -z "$GIT" ]; then + git clone $GIT $VERSION + elif [ ! -z "$URL" ]; then + wget $URL + tar xJf $VERSION.tar.xz + rm $VERSION.tar.xz + else + echo "Could not fetch source for $TOOL. No location specified." + fi +} + +install_dependencies() +{ + apt-get install --force-yes $DEPS +} + +build () +{ + cd $VERSION + ./configure --disable-manpages + make + mkdir -p $TMP_DIR + DESTDIR=$DESTDIR make install +} |
