Merge branch 'master' into 'master'

Added Makefile.am and configure.ac.

See merge request sulinos/devel/unibuild!11
# Regex
unibuild-*.tar.*
config.*
# Directories
.deps/
autom4te.cache/
build-aux/
# Files
Makefile.in
configure
configure~
Makefile
unibuild
# Others
aclocal.m4
.dirstamp
SUBDIRS = src
EXTRA_DIST = doc example LICENSE readme.rst unibuild.unibuild
AC_INIT([unibuild], [0.1], [bug@example.com])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall foreign])
AC_CONFIG_FILES([src/unibuild:src/unibuild.sh])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
#!/bin/bash
mkdir -p $DESTDIR/usr/lib/unibuild || true
mkdir -p $DESTDIR/usr/bin || true
cp -prfv src/* $DESTDIR/usr/lib/unibuild
chmod +x -R $DESTDIR/usr/lib/unibuild/*
mv $DESTDIR/usr/lib/unibuild/unibuild.sh $DESTDIR/usr/bin/unibuild
./configure --prefix=/usr
make
make install
install:
bash install.sh
unidir = $(pkglibdir)
bin_SCRIPTS = unibuild
nobase_dist_uni_DATA = api/* host/* hooks/* modules/* posthooks/* target/*
......@@ -60,7 +60,7 @@ __write_buildinfo() {
echo -e "pkgbase = $name" >> $PKGDIR/.BUILDINFO
echo -e "pkgver = $version-$release" >> $PKGDIR/.BUILDINFO
echo -e "pkgarch = $arch" >> $PKGDIR/.BUILDINFO
local sum="$(sha256sum "$CURDIR/$name")"
local sum="$(sha256sum "$CURDIR/$unibuild_file")"
sum=${sum%% *}
echo -e "pkgbuild_sha256sum = $sum" >> $PKGDIR/.BUILDINFO
echo -e "packager = $maintainer" >> $PKGDIR/.BUILDINFO
......
......@@ -17,7 +17,7 @@ export SHELL=/bin/bash
declare -r unibuild_api_version=4
declare -r inittime=$(date +%s%3N)
[ -f "$UNIBUILDRC" ] && source "$UNIBUILDRC"
[ "$MODDIR" == "" ] && export MODDIR=/usr/lib/unibuild/modules
[ "$MODDIR" == "" ] && export MODDIR=@prefix@/lib/unibuild/modules
set -e
for api in $(ls $MODDIR/../api | sort) ; do
source $MODDIR/../api/$api
......@@ -26,6 +26,7 @@ for mod in $(ls $MODDIR) ; do
source $MODDIR/$mod
done
import_source "$1"
export unibuild_file=$1
source $MODDIR/../target/$TARGET
source $MODDIR/../host/$HOST
......
......@@ -6,5 +6,6 @@ description="The universal builder system for different package types"
source=(./*)
_install(){
DESTDIR=$INSTALLDIR bash install.sh
./configure --prefix=/usr
DESTDIR=$INSTALLDIR make install
}
#!/bin/bash
if [ -x $DESTDIR/usr/bin/unibuild ]; then
rm $DESTDIR/usr/bin/unibuild
fi
if [ -d $DESTDIR/usr/lib/unibuild ]; then
rm -r $DESTDIR/usr/lib/unibuild/
fi
\ No newline at end of file
./configure --prefix=/usr
make uninstall
#!/bin/bash
bash uninstall.sh
bash install.sh
\ No newline at end of file
bash install.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment