Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
cf5e1dba
Commit
cf5e1dba
authored
Apr 21, 2003
by
Mac Newbold
Browse files
Add a makefile for updating the files in this directory.
parent
66d34b8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/GNUmakefile
0 → 100644
View file @
cf5e1dba
#
# This makefile is different than all the others...
#
# It is intended to be run in place in the cvs tree to update the files,
# and doesn't install or build anything else. This is why it doesn't go
# through configure, etc.
#
# The easy way: do 'gmake all'
# You can also run the individual targets too.
all
:
db-create db-fill sitevars
db-create
:
@
rm
-f
./.tmp-db-create.sql
@
mysqldump
-d
tbdb
>
./.tmp-db-create.sql
@
diff ./database-create.sql ./.tmp-db-create.sql
>
./.tmp-create-diff
@
if
test
-s
./.tmp-create-diff
;
\
then
\
cat
./.tmp-create-diff
;
\
echo
"NOTE: Don't forget to update db-migrate.txt!"
;
\
mv
./.tmp-db-create.sql ./database-create.sql
;
\
fi
@
rm
-f
./.tmp-create-diff
@
rm
-f
./.tmp-db-create.sql
db-fill
:
@
/usr/testbed/sbin/wap /usr/testbed/sbin/export_tables
\
>
database-fill.sql
sitevars
:
@
mysqldump
-t
tbdb sitevariables
>
sitevars-create.sql
Write
Preview
Supports
Markdown
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