File: makeGentoo

package info (click to toggle)
dtc 0.35.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 18,824 kB
  • sloc: php: 50,739; sh: 8,596; makefile: 572; perl: 148; xml: 25
file content (26 lines) | stat: -rwxr-xr-x 607 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#
# Welcome to the DTC install maker !
# This will produce the tarball package
# Maintainer: Thomas GOIRAND <thomas [ at ] goirand.fr>
# please do not ship with you packages
# this is only a small coder tool...
#

VERS=`cat version`
RELS=`cat release`
VERSION=$VERS"-"$RELS
UNIX_TYPE=gentoo
BUILD_DIR=dtc
DEST_DIR="dtc_"$VERSION"-gentoo"
ARCH_NAME=$DEST_DIR"_all.tar.gz"

CHECK_FOR_FAKEROOT=`which fakeroot`
if [ ! $? -eq 0 ]; then
	echo "Please emerge fakeroot"
	exit 1
fi

fakeroot ./buildGentoo ${UNIX_TYPE} ${BUILD_DIR} ${ARCH_NAME} ${DEST_DIR}

echo " -- Succesfully made "$ARCH_NAME" ---"