1 # Make GNU tar scripts.
3 # Copyright 2004-2021 Free Software Foundation, Inc.
5 # This file is part of GNU tar.
7 # GNU tar is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU tar is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 BACKUP_LIBEXEC_SCRIPTS_LIST=backup.sh dump-remind
21 BACKUP_SBIN_SCRIPTS_LIST=backup restore
22 libexec_SCRIPTS=@BACKUP_LIBEXEC_SCRIPTS@
23 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT=backup.sh dump-remind
24 sbin_SCRIPTS=@BACKUP_SBIN_SCRIPTS@
32 CLEANFILES=backup.sh backup restore dump-remind
34 SED_CMD="s,\@libexecdir\@,$(libexecdir),;\
35 s,\@sysconfdir\@,$(sysconfdir),;\
36 s,\@PACKAGE_NAME\@,$(PACKAGE_NAME),;\
37 s,\@VERSION\@,$(VERSION),;\
38 s,\@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),;\
39 s,\@DATE_FORMAT_OK\@,$(DATE_FORMAT_OK),;@BACKUP_SED_COND@"
41 backup.sh: $(srcdir)/backup.sh.in
42 sed $(SED_CMD) $? > $@
44 backup: $(srcdir)/backup.in
45 sed $(SED_CMD) $? > $@
47 restore: $(srcdir)/restore.in
48 sed $(SED_CMD) $? > $@
50 dump-remind: $(srcdir)/dump-remind.in
51 sed $(SED_CMD) $? > $@