diff options
| author | Michael Forney <mforney@mforney.org> | 2016-12-11 16:04:20 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-12-13 23:10:30 -0800 |
| commit | 293f5a93b77d92fd65db7f3d0df654f102e46cfb (patch) | |
| tree | 6ecd1170e3dd793862dd852814dc1b4cd5e44260 /core/bc | |
| parent | 9a506a6834df01a26795cea222b410f206efa9fa (diff) | |
Move to flat package hierarchy
Note to self: never try to move submodules again
To migrate your existing submodules (more or less):
set -x
set -e
mkdir .git/modules/pkg
for old in */*/src ; do
new="pkg/${old#*/}"
if ! [ -f "$old/.git" ] || [ "${old%%/*}" = pkg ] ; then
continue
fi
git -C ".git/modules/$old" config core.worktree "../../../../../$new"
rmdir "$new"
mv "$old" "$new"
sed -e "s,$old,$new," "$new/.git" > "$new/.git.tmp"
mv "$new/.git.tmp" "$new/.git"
mkdir ".git/modules/${new%/src}"
mv ".git/modules/$old" ".git/modules/$new"
rm "${old%/src}"/*.ninja
mv "${old%/src}"/*.tar.{gz,xz,bz2} "${new%/src}/"
rmdir "${old%/src}" || true
done
sed -e 's,^\[submodule "[^/]*/,[submodule "pkg/,' .git/config > .git/config.tmp
mv .git/config.tmp .git/config
Diffstat (limited to 'core/bc')
| -rw-r--r-- | core/bc/.gitignore | 2 | ||||
| -rw-r--r-- | core/bc/config.h | 40 | ||||
| -rw-r--r-- | core/bc/gen.rc | 12 | ||||
| -rw-r--r-- | core/bc/patch/0001-Fix-use-of-uninitialized-f_void.patch | 25 | ||||
| -rw-r--r-- | core/bc/rev | 1 | ||||
| -rw-r--r-- | core/bc/sha256 | 1 | ||||
| -rw-r--r-- | core/bc/url | 1 |
7 files changed, 0 insertions, 82 deletions
diff --git a/core/bc/.gitignore b/core/bc/.gitignore deleted file mode 100644 index dce428a7..00000000 --- a/core/bc/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/bc-1.06.95.tar.bz2 -/src diff --git a/core/bc/config.h b/core/bc/config.h deleted file mode 100644 index 35627d41..00000000 --- a/core/bc/config.h +++ /dev/null @@ -1,40 +0,0 @@ -#include <config-posix.h> - -#define BC_COPYRIGHT "Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc." -#define DC_COPYRIGHT "Copyright 1994, 1997, 1998, 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc." -#define DC_VERSION "1.3.95" -/* #undef HAVE_DOPRNT */ -/* #undef HAVE_LIB_H */ -#define HAVE_MEMORY_H 1 -/* #undef LIBEDIT */ -#define PACKAGE "bc" -#define PACKAGE_BUGREPORT "" -#define PACKAGE_NAME "bc" -#define PACKAGE_STRING "bc 1.06.95" -#define PACKAGE_TARNAME "bc" -#define PACKAGE_URL "" -#define PACKAGE_VERSION "1.06.95" -/* #undef READLINE */ -#ifndef _ALL_SOURCE -# define _ALL_SOURCE 1 -#endif -#ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 -#endif -#ifndef _POSIX_PTHREAD_SEMANTICS -# define _POSIX_PTHREAD_SEMANTICS 1 -#endif -#ifndef _TANDEM_SOURCE -# define _TANDEM_SOURCE 1 -#endif -#ifndef __EXTENSIONS__ -# define __EXTENSIONS__ 1 -#endif -#define VERSION "1.06.95" -/* #undef YYTEXT_POINTER */ -/* #undef _MINIX */ -/* #undef _POSIX_1_SOURCE */ -/* #undef _POSIX_SOURCE */ -/* #undef const */ -/* #undef ptrdiff_t */ -/* #undef size_t */ diff --git a/core/bc/gen.rc b/core/bc/gen.rc deleted file mode 100644 index c75aff92..00000000 --- a/core/bc/gen.rc +++ /dev/null @@ -1,12 +0,0 @@ -cflags\ - -D HAVE_CONFIG_H\ - -isystem include\ - -I '$dir' \ - -I '$srcdir'/h - -lib libbc.a lib/number.c -exe bin/bc bc/^(main.c bc.c scan.c execute.c load.c storage.c util.c global.c warranty.c) libbc.a -file bin/bc '$outdir'/bin/bc 755 -file share/man/man1/bc.1 '$srcdir'/doc/bc.1 644 - -fetch curl diff --git a/core/bc/patch/0001-Fix-use-of-uninitialized-f_void.patch b/core/bc/patch/0001-Fix-use-of-uninitialized-f_void.patch deleted file mode 100644 index 2b91dc9b..00000000 --- a/core/bc/patch/0001-Fix-use-of-uninitialized-f_void.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 359f44a3a0605c94d57f35e4de39e6028dce018f Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Sun, 12 Jun 2016 20:12:28 -0700 -Subject: [PATCH] Fix use of uninitialized f_void - -See http://www.pixelbeat.org/programming/oss_bug_flow.html. ---- - bc/storage.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/bc/storage.c b/bc/storage.c -index 699729a..37b4c6c 100644 ---- a/bc/storage.c -+++ b/bc/storage.c -@@ -99,6 +99,7 @@ more_functions (VOID) - { - f = &functions[indx]; - f->f_defined = FALSE; -+ f->f_void = FALSE; - f->f_body = (char *) bc_malloc (BC_START_SIZE); - f->f_body_size = BC_START_SIZE; - f->f_code_size = 0; --- -2.8.1 - diff --git a/core/bc/rev b/core/bc/rev deleted file mode 100644 index d00491fd..00000000 --- a/core/bc/rev +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/core/bc/sha256 b/core/bc/sha256 deleted file mode 100644 index 5aebdc1f..00000000 --- a/core/bc/sha256 +++ /dev/null @@ -1 +0,0 @@ -7ee4abbcfac03d8a6e1a8a3440558a3d239d6b858585063e745c760957725ecc bc-1.06.95.tar.bz2 diff --git a/core/bc/url b/core/bc/url deleted file mode 100644 index 29e9268a..00000000 --- a/core/bc/url +++ /dev/null @@ -1 +0,0 @@ -url = "http://alpha.gnu.org/gnu/bc/bc-1.06.95.tar.bz2" |
