File: setup-theme-d-bootstrap-env

package info (click to toggle)
theme-d 7.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,036 kB
  • sloc: lisp: 9,625; sh: 5,321; makefile: 715; ansic: 477
file content (45 lines) | stat: -rwxr-xr-x 1,655 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

# Copyright (C) 2022, 2025 Tommi Höynälänmaa
# Distributed under GNU General Public License version 3,
# see file doc/GPL-3.

bootstrapdir=$(get-theme-d-config-var bootstrap-dir)
targetdir=theme-d-bootstrap

if [ -e $targetdir ] ; then
    echo "Target directory exists. Doing nothing." ;
    exit 1 ;
fi

if [ "$bootstrapdir" = "" ] ; then
    echo "Directory could not be computed. Doing nothing." ;
    exit 1 ;
fi

mkdir -p $targetdir/src/theme-d-in-theme-d
mkdir -p $targetdir/build1/theme-d-in-theme-d
mkdir -p $targetdir/bootstrap/theme-d-in-theme-d

cp $bootstrapdir/src/theme-d-in-theme-d/*.th? \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/src/theme-d-in-theme-d/bootstrap.mk \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/src/theme-d-in-theme-d/deps.mk \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/src/theme-d-in-theme-d/module-deps.mk \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/src/theme-d-in-theme-d/program-deps.mk \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/src/theme-d-in-theme-d/compute-pcode-module-deps.sh \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/src/theme-d-in-theme-d/compute-bst-program-deps.sh \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/src/theme-d-in-theme-d/compute-bst-target-module-deps.sh \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/src/theme-d-in-theme-d/compute-all-deps.sh \
   $targetdir/src/theme-d-in-theme-d/
cp $bootstrapdir/build1/theme-d-in-theme-d/user.mk \
   $targetdir/build1/theme-d-in-theme-d/
cp $bootstrapdir/bootstrap/theme-d-in-theme-d/user.mk \
   $targetdir/bootstrap/theme-d-in-theme-d/