1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/validator/validator.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 if [ $prefix_auto = 1 ]; then
14 prefix="opt/validator"
19 var_append makeinstopt ' ' 'prefix=$root/$prefix'
23 mkdir -p $root/$prefix/share
26 validator_postinstall() {
27 tar $taropt `match_source_file -p wdg-sgml-lib` -C $root/$prefix/share
28 install -m 755 `match_source_file -p validate` $root$bindir/validate
29 sed -i "s,/usr/local/,/$prefix/," $root$bindir/validate
32 hook_add premake 3 "validator_premake"
33 hook_add postmake 3 "validator_postinstall"