Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
bf7c33b2
Commit
bf7c33b2
authored
Oct 04, 2011
by
Nikos Skalkotos
Browse files
Fix helper's Makefile
* Change the main script from rc.local to snf-image-helper. * Fix some build dirs.
parent
9279d315
Changes
3
Show whitespace changes
Inline
Side-by-side
helper/Makefile.am
View file @
bf7c33b2
SUBDIRS
=
tasks
base_name
=
$(
subst
-helper
,,
$(PACKAGE)
)
initdir
=
$(sysconfdir)
commondir
=
$(datarootdir)
/
$(base_name)
export
base_name
commondir
=
$(datarootdir)
/
$(PACKAGE)
scriptsdir
=
$(libdir)
/
$(PACKAGE)
tasksdir
=
$(scriptsdir)
/tasks
export
commondir
export
scriptsdir
export
tasksdir
SUBDIRS
=
tasks
dist_doc_DATA
=
COPYING AUTHORS ChangeLog
dist_in
it
_SCRIPTS
=
rc.local
dist_
common
_SCRIPTS
=
snf-passtohash.py
dist_
b
in_SCRIPTS
=
snf-image-helper
dist_
scripts
_SCRIPTS
=
snf-passtohash.py
dist_common_DATA
=
common.sh
edit
=
sed
\
-e
's|@sysconfdir[@]|
$(sysconfdir)
|g'
\
-e
's|@localstatedir[@]|
$(localstatedir)
|g'
\
-e
's|@datarootdir[@]|
$(datarootdir)
|g'
\
-e
's|@
base_name[@]|
$(base_name
)
|g'
\
-e
's|@
commondir[@]|
$(commondir
)
|g'
\
-e
's|@RESIZE2FS[@]|
$(RESIZE2FS)
|g'
\
-e
's|@XMLSTARLET[@]|
$(XMLSTARLET)
|g'
%
:
%.in Makefile
@
echo
"Real Path is:
$(rootdir)
"
rm
-f
$@
$@
.tmp
srcdir
=
''
;
\
test
-f
./
$@
.in
||
srcdir
=
$(srcdir)
/
;
\
$(edit)
$
${srcdir}$@
.in
>
$@
.tmp
mv
$@
.tmp
$@
CLEANFILES
=
rc.local
CLEANFILES
=
snf-image-helper
helper/
rc.local
.in
→
helper/
snf-image-helper
.in
View file @
bf7c33b2
...
...
@@ -29,7 +29,7 @@
# those of the authors and should not be interpreted as representing official
# policies, either expressed or implied, of GRNET S.A.
.
@
datarootdir@/@base_name
@/common.sh
.
@
commondir
@/common.sh
set
-e
...
...
@@ -53,7 +53,7 @@ else
fi
# Image mount point...
target
=
$(
mktemp
-d
--tmpdir
target.XXXXXXXX
)
||
exit
1
target
=
$(
mktemp
-d
--tmpdir
target.XXXXXXXX
)
CLEANUP+
=(
"rmdir
$target
"
)
export
SNF_IMAGE_TARGET
=
$target
...
...
@@ -68,7 +68,7 @@ if [ -z "$RUN_PARTS" ]; then
fi
echo
"Execute all snf-image tasks...."
$RUN_PARTS
-v
--exit-on-error
"
/usr/lib/snf-image/
tasks"
$RUN_PARTS
-v
--exit-on-error
"
@
tasks
dir@
"
echo
"SUCCESS"
>
$RESULT
...
...
helper/tasks/Makefile.am
View file @
bf7c33b2
tasksdir
=
$
{
libdir
}
/
$(
base_name
)
/tasks
tasksdir
=
$
(
libdir
)
/
$(
PACKAGE
)
/tasks
dist_tasks_SCRIPTS
=
\
10ResizeUnmounted
\
...
...
@@ -12,7 +12,6 @@ dist_tasks_SCRIPTS = \
50ChangePassword
\
80UmountImage
edit
=
sed
\
-e
's|@sysconfdir[@]|
$(sysconfdir)
|g'
\
-e
's|@localstatedir[@]|
$(localstatedir)
|g'
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment