X-Git-Url: https://deadsoftware.ru/gitweb?p=cpc.git;a=blobdiff_plain;f=make-bootstrap.sh;h=34069ec230a6711d9cc273bbdaa3dfddd1170ccb;hp=7a5fe31640216c5cfa895a85baba7ec9dd31c17f;hb=2f6052eb7f36254f3f459addb169dd7c07786cf7;hpb=eb117cae2600763b67692ee65f22d33efdb89fe5 diff --git a/make-bootstrap.sh b/make-bootstrap.sh index 7a5fe31..34069ec 100755 --- a/make-bootstrap.sh +++ b/make-bootstrap.sh @@ -1,13 +1,17 @@ -#! /bin/sh +#! /bin/bash set -e +abspath() { + [[ "$1" == /* ]] && echo "$1" || echo "$(pwd)/$1" +} + ###^^^^^^^^^^^^^^^^^^### ### Global variables ### ###__________________### _exec="make-bootstrap.sh" -_this="$(dirname "$(readlink -f "$0")")" +_this="$(dirname "$(abspath "$0")")" _version="v0.3" _sign=false @@ -70,8 +74,9 @@ fi rm -rf "$_this/bootstrap" mkdir -p "$_this/bootstrap" make_bootstrap 486 cpfront linux -make_bootstrap 486 cpfront cygwin -make_bootstrap arm cpfront linux +#make_bootstrap 486 cpfront cygwin +#make_bootstrap arm cpfront linux +make_bootstrap powerpc cpfront osx ###^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^### ### Hack: remove temp files from v0.1 ### @@ -85,7 +90,7 @@ find "$_this/bootstrap" -type f -name '.new*' -delete rm -rf "$_this/cpc-$_version" mkdir -p "$_this/cpc-$_version" -cp -rt "$_this/cpc-$_version" -- \ +cp -r \ "$_this/CHANGELOG" \ "$_this/LICENSE" \ "$_this/README" \ @@ -96,7 +101,8 @@ cp -rt "$_this/cpc-$_version" -- \ "$_this/make-bootstrap.sh" \ "$_this/bootstrap" \ "$_this/src" \ - "$_this/C" + "$_this/C" \ + "$_this/cpc-$_version" tar czf "cpc-$_version.src.tar.gz" "cpc-$_version" ###^^^^^^^^^^^^^^^^###