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 /pkg/make | |
| 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 'pkg/make')
| -rw-r--r-- | pkg/make/config.h | 119 | ||||
| -rw-r--r-- | pkg/make/gen.rc | 20 | ||||
| -rw-r--r-- | pkg/make/rev | 1 | ||||
| m--------- | pkg/make/src | 0 |
4 files changed, 140 insertions, 0 deletions
diff --git a/pkg/make/config.h b/pkg/make/config.h new file mode 100644 index 00000000..0938c4b2 --- /dev/null +++ b/pkg/make/config.h @@ -0,0 +1,119 @@ +#include <config-posix.h> + +/* these cause make to use glibc symbols */ +#undef HAVE_WCHTYPE_H +#undef HAVE_WCHAR_H + +/* paths */ +#define INCLUDEDIR "/include" +#define LIBDIR "/lib" +#define LOCALEDIR "/share/locale" + +/* #undef CLOSEDIR_VOID */ +/* #undef CRAY_STACKSEG_END */ +/* #undef C_ALLOCA */ +/* #undef C_GETLOADAVG */ +/* #undef DGUX */ +/* #undef ENABLE_NLS */ +#define FILE_TIMESTAMP_HI_RES 1 +/* #undef GETLOADAVG_PRIVILEGED */ +#define HAVE_ALLOCA 1 +#define HAVE_ALLOCA_H 1 +/* #undef HAVE_CASE_INSENSITIVE_FS */ +/* #undef HAVE_CFLOCALECOPYCURRENT */ +/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ +/* #undef HAVE_DCGETTEXT */ +#define HAVE_DECL_BSD_SIGNAL 1 +#define HAVE_DECL_DLERROR 1 +#define HAVE_DECL_DLOPEN 1 +#define HAVE_DECL_DLSYM 1 +#define HAVE_DECL_SYS_SIGLIST 0 +#define HAVE_DECL__SYS_SIGLIST 0 +#define HAVE_DECL___SYS_SIGLIST 0 +/* #undef HAVE_DOS_PATHS */ +/* #undef HAVE_GETHOSTBYNAME */ +#define HAVE_GETLOADAVG 1 +/* #undef HAVE_GETTEXT */ +/* #undef HAVE_GUILE */ +/* #undef HAVE_LIBDGC */ +/* #undef HAVE_LIBKSTAT */ +/* #undef HAVE_MACH_MACH_H */ +#define HAVE_MEMORY_H 1 +#define HAVE_MKTEMP 1 +/* #undef HAVE_NDIR_H */ +/* #undef HAVE_NLIST_H */ +/* #undef HAVE_PSTAT_GETDYNAMIC */ +#define HAVE_SA_RESTART 1 +#define HAVE_SETLINEBUF 1 +/* #undef HAVE_SIGSETMASK */ +/* #undef HAVE_STRCMPI */ +/* #undef HAVE_STRICMP */ +/* #undef HAVE_STRNCMPI */ +/* #undef HAVE_STRNICMP */ +/* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */ +/* #undef HAVE_SYS_DIR_H */ +/* #undef HAVE_SYS_NDIR_H */ +#define HAVE_SYS_PARAM_H 1 +#define HAVE_SYS_TIMEB_H 1 +/* #undef HAVE_UNION_WAIT */ +#define HAVE_UNSIGNED_LONG_LONG_INT 1 +/* #undef HAVE_VFORK_H */ +#define HAVE_WAIT3 1 +#define MAKE_HOST "x86_64-linux-musl" +#define MAKE_JOBSERVER 1 +#define MAKE_LOAD 1 +#define MAKE_SYMLINKS 1 +/* #undef NLIST_NAME_UNION */ +/* #undef NLIST_STRUCT */ +#define PACKAGE "make" +#define PACKAGE_BUGREPORT "bug-make@gnu.org" +#define PACKAGE_NAME "GNU make" +#define PACKAGE_STRING "GNU make 4.2.1" +#define PACKAGE_TARNAME "make" +#define PACKAGE_URL "http://www.gnu.org/software/make/" +#define PACKAGE_VERSION "4.2.1" +#define PATH_SEPARATOR_CHAR ':' +#define SCCS_GET "get" +/* #undef SCCS_GET_MINUS_G */ +/* #undef STACK_DIRECTION */ +/* #undef STAT_MACROS_BROKEN */ +#define ST_MTIM_NSEC st_mtim.tv_nsec +/* #undef SVR4 */ +#define TIME_WITH_SYS_TIME 1 +/* #undef UMAX */ +/* #undef UMAX4_3 */ +#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 "4.2.1" +/* #undef WINDOWS32 */ +/* #undef WITH_DMALLOC */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif +/* #undef _FILE_OFFSET_BITS */ +/* #undef _LARGE_FILES */ +/* #undef _MINIX */ +/* #undef _POSIX_1_SOURCE */ +/* #undef _POSIX_SOURCE */ +/* #undef const */ +/* #undef gid_t */ +/* #undef off_t */ +/* #undef pid_t */ +/* #undef size_t */ +/* #undef ssize_t */ +/* #undef uid_t */ +/* #undef uintmax_t */ +/* #undef vfork */ diff --git a/pkg/make/gen.rc b/pkg/make/gen.rc new file mode 100644 index 00000000..1c46aa90 --- /dev/null +++ b/pkg/make/gen.rc @@ -0,0 +1,20 @@ +cflags\ + -D HAVE_CONFIG_H\ + -I include\ + -I '$dir' \ + -I '$srcdir' \ + -I '$srcdir'/glob + +lib libglob.a glob/^(glob.c fnmatch.c) + +exe make\ + ar.c arscan.c commands.c default.c dir.c expand.c file.c\ + function.c getopt.c getopt1.c guile.c implicit.c job.c load.c\ + loadapi.c main.c misc.c posixos.c output.c read.c remake.c\ + rule.c signame.c strcache.c variable.c version.c vpath.c\ + hash.c remote-stub.c\ + libglob.a +file bin/make '$outdir'/make 755 +file share/man/man1/make.1 '$srcdir'/make.1 644 + +fetch git diff --git a/pkg/make/rev b/pkg/make/rev new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/pkg/make/rev @@ -0,0 +1 @@ +1 diff --git a/pkg/make/src b/pkg/make/src new file mode 160000 +Subproject 9ab8af7cd8aaac587787d9df7e34758951d7c47 |
