projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to GConf-3.2.6
[hvlinux.git]
/
stage0
/
create-version
diff --git
a/stage0/create-version
b/stage0/create-version
old mode 100644
(file)
new mode 100755
(executable)
index
527e7ba
..
47c40a2
--- a/
stage0/create-version
+++ b/
stage0/create-version
@@
-6,27
+6,30
@@
create_hvlinux_version()
{
local CFG_DIR="../config"
{
local CFG_DIR="../config"
- if [ -f ${CFG_DIR}/${HV_VER_FILE} ]; then
- echo "Version file already created"
- return 0
- fi
+ if [ ! -f ${CFG_DIR}/${HV_VER_FILE} ]; then
+ echo "Create new hvlinux-version file"
- echo "Create new hvlinux-version file"
+ UUIDGEN=/usr/bin/uuidgen
- if [ ! -x /usr/bin/uuidgen ]; then
- echo "Error, missing /usr/bin/uuidgen program"
- exit 1
- fi
+ if [ ! -x ${UUIDGEN} ]; then
+ UUIDGEN=/usr/bin/dbus-uuidgen
- cat > ${CFG_DIR}/${HV_VER_FILE} <<EOF
+ if [ ! -x ${UUIDGEN} ]; then
+ echo "Error, missing /usr/bin/uuidgen program"
+ exit 1
+ fi
+ fi
+
+ cat > ${CFG_DIR}/${HV_VER_FILE} <<EOF
# Do not edit this file.
# This file is autogenerated by the HVLinux build system
EOF
# Do not edit this file.
# This file is autogenerated by the HVLinux build system
EOF
- echo "HVUUID=$(uuidgen)" >> ${CFG_DIR}/${HV_VER_FILE}
+ echo "HVUUID=$(${UUIDGEN})" >> ${CFG_DIR}/${HV_VER_FILE}
+ echo "HVDATE=\"$(date)\"" >> ${CFG_DIR}/${HV_VER_FILE}
+ fi
# Copy local file to destination LFS partition
# Copy local file to destination LFS partition
- mkdir -pv ${LFS}/etc
cp ${CFG_DIR}/${HV_VER_FILE} ${LFS}/etc
}
cp ${CFG_DIR}/${HV_VER_FILE} ${LFS}/etc
}