manifest.sh 1.73 KB
Newer Older
Daniel Bissani Furlin's avatar
Daniel Bissani Furlin committed
1
#!/usr/bin/env bash
2
# shellcheck disable=SC1090
3 4 5 6 7 8
#
# Copyright (C) 2017 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of create-iso
#
9
# create-iso is free software; you can redistribute it and/or
10 11 12 13 14 15 16 17 18 19 20 21 22
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
23

sulzbach's avatar
sulzbach committed
24 25 26 27 28 29 30 31 32 33 34 35
# PROFILE="$1"
# NAME="$2"
# WEBSITE="$3"
# TMPFS="$4"
TMP="$5"
# CHROOTDIR="$6"
# SCRIPTSDIR="$7"
PKGLIST="$8"
# SOURCESLIST="$9"
# REPO="${10}"
# KEYURL="${11}"

36
PREFIX="${PWD}"
37

Lucas Sulzbach's avatar
Lucas Sulzbach committed
38
type createIsoLogger >/dev/nul 2>&1 || source "${PREFIX}/helper/logging.incsh"
39

40
# This packages must not appear in the manifest
sulzbach's avatar
sulzbach committed
41 42 43
cp "${TMP}/image/casper/filesystem.manifest" \
"${TMP}/image/casper/filesystem.manifest-desktop" || createIsoLogger --message \
"Unable to create desktop manifest" --tag "cp"
44
IFS_OLD="${IFS}"
45
IFS=$'\n'
46
while IFS= read -r package
47
do
sulzbach's avatar
sulzbach committed
48 49 50 51 52
    sed --in-place "/${package}/d" \
    "${TMP}/image/casper/filesystem.manifest-desktop" || createIsoLogger \
    --message "Unable to remove package \"${package}\" from desktop manifest" \
    --type warning --tag "sed"
done < "${PKGLIST}/remove-desktop.list"
53
IFS="${IFS_OLD}"
54

55
exit 0