mirror of https://github.com/MidnightCommander/mc
Patch for keeping the timestamp of ./VERSION
Patch for vi-haters: mc named vi works as mcedit, view - as mcview aclocal.m4 is remade automatically
This commit is contained in:
parent
309a9ae50f
commit
d574ff2d58
|
@ -111,7 +111,9 @@ distdirs:
|
|||
|
||||
distcopy:
|
||||
sed -e "s/^%define ver .*/%define ver $(VERSION)/; s/^%define rel .*/%define rel 1/" mc.spec > Specfile
|
||||
sed "s/@VERSION@/$(VERSION)/" VERSION.in > VERSION
|
||||
sed "s/@VERSION@/$(VERSION)/" VERSION.in > VERSION.tmp
|
||||
if cmp -s VERSION VERSION.tmp; then rm -f VERSION.tmp; \
|
||||
else mv -f VERSION.tmp VERSION; fi
|
||||
cp $(DISTMAIN) ../mc-$(VERSION);
|
||||
cp po/Makefile.in.in ../mc-$(VERSION)/po;
|
||||
cp po/POTFILES.in ../mc-$(VERSION)/po;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2828,7 +2828,7 @@ static struct poptOption argumentTable[] = {
|
|||
static void
|
||||
handle_args (int argc, char *argv [])
|
||||
{
|
||||
char *tmp, *option_arg;
|
||||
char *tmp, *option_arg, *base;
|
||||
int c;
|
||||
poptContext optCon;
|
||||
|
||||
|
@ -2860,12 +2860,13 @@ handle_args (int argc, char *argv [])
|
|||
* directory from the command line arguments
|
||||
*/
|
||||
tmp = poptGetArg (optCon);
|
||||
if (!STRNCOMP (argv [0], "mce", 3)) {
|
||||
base = x_basename (argv[0]);
|
||||
if (!STRNCOMP (base, "mce", 3) || !STRCOMP(base, "vi")) {
|
||||
edit_one_file = "";
|
||||
if (tmp)
|
||||
edit_one_file = strdup (tmp);
|
||||
} else
|
||||
if (!STRNCOMP (argv [0], "mcv", 3)) {
|
||||
if (!STRNCOMP (base, "mcv", 3) || !STRCOMP(base, "view")) {
|
||||
if (tmp)
|
||||
view_one_file = strdup (tmp);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue